Initial commit
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
#ifndef VECTOR_HPP
|
||||
#define VECTOR_HPP
|
||||
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
|
||||
|
||||
class Vector {
|
||||
public:
|
||||
Vector(int size);
|
||||
int size() const;
|
||||
double& operator()(int i);
|
||||
double operator()(int i) const;
|
||||
void print() const;
|
||||
double norm() const;
|
||||
|
||||
private:
|
||||
std::vector<double> data;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user