NanoStructures  1.0
DMFT solver for layered, strongly correlated nanostructures
vector.h
1 #ifndef VECTOR_H
2 #define VECTOR_H
3 
4 namespace math {
5 class Vector
6 {
7 public:
8  Vector();
9  Vector(int length);
10  Vector(const Vector& orig);
11  Vector& operator =(const Vector& orig);
12  ~Vector();
13 
14  inline double* getData() { return m_data; }
15 
16  inline double get(int index) const { return m_data[index]; }
17  void set(int index, double value) { m_data[index] = value; }
18 
19  inline int getLength() { return m_length; }
20 
21  void resize(int length);
22 protected:
23  double * m_data;
24  int m_length;
25 };
26 }
27 #endif // VECTOR_H
Definition: vector.h:5