CS488 PA4
Vector.h
1 #ifndef edu_jmu_cs_Vector_h
2 #define edu_jmu_cs_Vector_h
3 
4 #include "Matrix.h"
5 
6 // Prototypes
7 
8 // Prototype of the Vector class (so that it can be used in the
9 // friend prototypes)
10 class Vector;
11 
12 // Prototypes of friend functions
13 double norm(const Matrix& A);
14 Matrix normalized(const Matrix& A);
15 
16 
21 class Vector: public Matrix {
22  public:
26  Vector();
27 
33  explicit Vector(int size);
34 
40  Vector(const Vector& original);
41 
49  friend double norm(const Matrix& a);
50 
58  friend Matrix normalized(const Matrix& a);
59 
67  Vector& operator=(std::initializer_list<double> m);
68 
81  Vector& operator=(const Matrix& other);
82 };
83 
84 #endif
Definition: Vector.h:21
Vector()
Definition: Vector.cpp:10
friend Matrix normalized(const Matrix &a)
Definition: Vector.cpp:34
Vector & operator=(std::initializer_list< double > m)
Definition: Vector.cpp:39
friend double norm(const Matrix &a)
Definition: Vector.cpp:23
Definition: Matrix.h:42