29 #define MyColumnVector MatrixWrapper::ColumnVector 30 #define MyRowVector MatrixWrapper::RowVector 31 #define MyMatrix MatrixWrapper::Matrix 51 virtual void resize(
int num_rows) = 0;
54 virtual void assign(
int newsize,
double value) = 0;
57 virtual unsigned int rows()
const = 0;
60 virtual unsigned int columns()
const = 0;
63 virtual unsigned int capacity()
const = 0;
69 virtual double operator()(
unsigned int i)
const = 0;
72 virtual double&
operator()(
unsigned int i) = 0;
76 {
return (*
this)(i+1);}
80 {
return (*
this)(i+1);}
155 virtual void resize(
int num_cols) = 0;
158 virtual void assign(
int newsize,
double value) = 0;
161 virtual unsigned int rows()
const = 0;
164 virtual unsigned int columns()
const = 0;
167 virtual unsigned int capacity()
const = 0;
173 virtual double operator()(
unsigned int)
const = 0;
218 virtual RowVector
operator- (
double b)
const = 0;
224 virtual RowVector
operator/ (
double b)
const = 0;
245 #endif // __OROVECTOR__ virtual unsigned int capacity() const =0
capacity
virtual MyColumnVector vectorAdd(const MyColumnVector &v2) const =0
join two vectors
virtual double operator[](unsigned int i) const
element indexing STARTING FROM 0
virtual ~ColumnVector_Wrapper()
Destructor.
virtual void resize(int num_rows)=0
resize
ColumnVector_Wrapper()
Constructor.
virtual double operator()(unsigned int i) const =0
element indexing
virtual void assign(int newsize, double value)=0
assign
RowVector_Wrapper()
Constructor.
virtual MyColumnVector operator+(const MyColumnVector &a) const =0
Operators.
virtual MyColumnVector & operator*=(double b)=0
Operators.
Class ColumnVectorWrapper.
virtual unsigned int columns() const =0
Ask numbers of columns (=1)
virtual double & operator[](unsigned int i)
element indexing STARTING FROM 0
virtual bool operator==(const MyColumnVector &a) const =0
Operator ==.
virtual MyColumnVector sub(int j_start, int j_end) const =0
get sub matrix
virtual MyColumnVector & operator=(const MyColumnVector &a)=0
operator =
virtual MyColumnVector & operator-=(const MyColumnVector &a)=0
Operators.
virtual ~RowVector_Wrapper()
Destructor.
virtual MyColumnVector & operator/=(double b)=0
Operators.
virtual MyColumnVector operator/(double b) const =0
Operators.
virtual MyRowVector transpose() const =0
get transpose
virtual MyColumnVector operator*(double b) const =0
Operators.
virtual MyColumnVector & operator+=(const MyColumnVector &a)=0
Operators.
virtual unsigned int rows() const =0
Ask number of rows.
virtual MyColumnVector operator-(const MyColumnVector &a) const =0
Operators.