Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102787674
matrix.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Feb 24, 04:46
Size
505 B
Mime Type
text/x-c
Expires
Wed, Feb 26, 04:46 (2 d)
Engine
blob
Format
Raw Data
Handle
24424444
Attached To
R6658 PHPC CG Project
matrix.h
View Options
#include <vector>
#include <iostream>
using namespace std;
using std::cout;
class matrix{
int rows,cols;
vector<double> data;
public:
void initialize(vector<double>,int,int);
int size();
double at(int);
double at(int,int);
void print();
matrix transpose();
matrix vector_transpose();
bool isValid(matrix x);
matrix scale(double);
vector<double> getData();
int getRows();
int getCols();
void update(vector<double>);
bool isSymmetric();
bool isPositiveDefinite();
};
Event Timeline
Log In to Comment