#include <vectorI.h>
Inheritance diagram for VectorI:
Public Methods | |
VectorI () | |
standard default constructor. | |
VectorI (const int nr, const int value=0) | |
standard constructor. | |
VectorI (const int* A, const int nr) | |
constructor that takes an int array of length nr. | |
VectorI (const VectorI& B) | |
copy constructor. | |
~VectorI () | |
virtual destructor. | |
VectorI& | operator= (const int value) |
assignment with a constant value. | |
void | resize (const int nr, const int value=0) |
member function resize calls MdataC resize. | |
virtual Ref<int> | operator() (const int i, const int) |
non constant, write access to elements. | |
virtual int | operator() (const int i, const int) const |
constant, read only access to elements. | |
virtual void | stream (ostream& s) |
output to stream. | |
int | multiply (const VectorI& B) const |
dot product of this Vector with Vector B. | |
Protected Methods | |
virtual int* | ref (const int i) const |
low level reference to data returns a pointer, use this with care. | |
virtual int | read (const int i) const |
low level read. | |
virtual void | write (const int i, const int v) |
low level write. | |
virtual void | add (const int i, const int v) |
low level add to. | |
virtual void | sub (const int i, const int v) |
low level sub from. | |
virtual void | mul (const int i, const int v) |
low level mul with. | |
virtual void | div (const int i, const int v) |
low level div by. |
|
standard default constructor.
|
|
standard constructor.
|
|
constructor that takes an int array of length nr.
|
|
copy constructor.
|
|
virtual destructor.
|
|
assignment with a constant value.
|
|
member function resize calls MdataC resize.
|
|
non constant, write access to elements.
Reimplemented from MatrixC. |
|
constant, read only access to elements.
Reimplemented from MatrixC. |
|
low level reference to data returns a pointer, use this with care.
|
|
low level read.
|
|
low level write.
|
|
low level add to.
|
|
low level sub from.
|
|
low level mul with.
|
|
low level div by.
|
|
output to stream.
Reimplemented from MatrixC. |
|
dot product of this Vector with Vector B.
|