-
Notifications
You must be signed in to change notification settings - Fork 0
/
PNVector.hpp
49 lines (37 loc) · 850 Bytes
/
PNVector.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//
//
// RK4_project
//
//
//
//
// Created by Philipp Gloor on 01.05.11.
// Copyright 2011 UZH. All rights reserved.
//
#ifndef RK4_project_PNVector_hpp
#define RK4_project_PNVector_hpp
#include <vector>
class PNVector {
public:
PNVector(int N){
m_vector.resize(N);
}
~PNVector(){}
PNVector(const PNVector &vSource)
{
m_vector = vSource.m_vector;
}
PNVector operator+(const PNVector &rhs);
PNVector operator+(const double h);
PNVector operator*(const PNVector &rhs);
PNVector operator*(const double h);
PNVector operator/(const double h);
PNVector& operator=(const PNVector &other);
double &operator[](unsigned int index);
void Print();
unsigned long getSize() const;
private:
std::vector<double> m_vector;
protected:
};
#endif