Skip to content

Instantly share code, notes, and snippets.

@AlexFrazer
Last active December 10, 2015 18:49
Show Gist options
  • Save AlexFrazer/4477578 to your computer and use it in GitHub Desktop.
Save AlexFrazer/4477578 to your computer and use it in GitHub Desktop.
#include "image.h"
#include "matrix.h"
#include <vector>
#include <iostream>
class image {
int main() {
matrix *smallMatrix=new matrix;
}
};
#include <iostream>
#include <stdlib.h>
#include <vector>
class matrix {
public:
matrix(int in_x, int in_y, std::vector<float> const& in_values) {
x=in_x;
y=in_y;
values=in_values;
}
int getHeight() {
return x;
}
int getWidth() {
return y;
}
private:
int x,y;
std::vector<float> values;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment