#include <vectorD.h>
Inheritance diagram for VectorD:
Public Methods | |
VectorD () | |
standard default constructor. | |
VectorD (const int nr, const double value=0.0) | |
standard constructor. | |
VectorD (const double* A, const int nr) | |
constructor that takes a double array of length nr. | |
VectorD (const VectorD& B) | |
copy constructor. | |
~VectorD () | |
virtual destructor. | |
VectorD& | operator= (const double value) |
assignment with a constant value. | |
void | resize (const int nr, const double value=0.0) |
member function resize calls MatrixC resize. | |
virtual Ref<double> | operator() (const int i, const int=0) |
non constant, write access to elements. | |
virtual double | operator() (const int i, const int=0) const |
constant, read only access to elements. | |
virtual void | stream (ostream& s) |
output to stream. | |
VectorD | transpose () const |
return transposed Vector. | |
void | multiply (const MatrixFD& A, const VectorD& x, const char TRANS='N', const double ALPHA=1.0, const double BETA=0.0) |
multiplication this=alpha*op(A)*x+beta*this, BLAS level 2. | |
void | multiply (const MatrixSD& A, const VectorD& x, const double ALPHA=1.0, const double BETA=0.0) |
multiplication this=alpha*op(A)*x+beta*this, BLAS level 2. | |
void | multiply (const MatrixBD& A, const VectorD& x, const char TRANS='N', const double ALPHA=1.0, const double BETA=0.0) |
multiplication this=alpha*op(A)*x+beta*this, BLAS level 2. | |
double | multiply (const VectorD& B) const |
dot product of this Vector with Vector B. | |
void | multiply (const double value) |
multiply this Vector with constant value and write to this Vector. | |
double | norm2 () const |
calculate L2 norm. | |
Protected Methods | |
double* | ref (const int i) const |
low level reference to data returns a pointer, use this with care. | |
double | read (const int i) const |
low level read. | |
void | write (const int i, const double v) |
low level write. | |
void | add (const int i, const double v) |
low level add to. | |
void | sub (const int i, const double v) |
low level sub from. | |
void | mul (const int i, const double v) |
low level mul with. | |
void | div (const int i, const double v) |
low level div by. |
|
standard default constructor.
|
|
standard constructor.
|
|
constructor that takes a double array of length nr.
|
|
copy constructor.
|
|
virtual destructor.
|
|
assignment with a constant value.
|
|
member function resize calls MatrixC 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. |
|
return transposed Vector.
Reimplemented from MatrixC. |
|
multiplication this=alpha*op(A)*x+beta*this, BLAS level 2.
|
|
multiplication this=alpha*op(A)*x+beta*this, BLAS level 2.
|
|
multiplication this=alpha*op(A)*x+beta*this, BLAS level 2.
|
|
dot product of this Vector with Vector B.
|
|
multiply this Vector with constant value and write to this Vector.
|
|
calculate L2 norm.
|