Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

VectorD Class Reference

A user level class for a double column Vector. More...

#include <vectorD.h>

Inheritance diagram for VectorD:

MatrixC Matrix List of all members.

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.


Detailed Description

A user level class for a double column Vector.

Author(s):
rokrau
Date:
2000/11/09 18:41:32


Constructor & Destructor Documentation

VectorD::VectorD ( ) [explicit]
 

standard default constructor.

VectorD::VectorD ( const int nr,
const double value = 0.0 ) [explicit]
 

standard constructor.

VectorD::VectorD ( const double * A,
const int nr ) [explicit]
 

constructor that takes a double array of length nr.

VectorD::VectorD ( const VectorD & B )
 

copy constructor.

VectorD::~VectorD ( ) [inline]
 

virtual destructor.


Member Function Documentation

VectorD & VectorD::operator= ( const double value ) [inline]
 

assignment with a constant value.

void VectorD::resize ( const int nr,
const double value = 0.0 )
 

member function resize calls MatrixC resize.

Ref< double > VectorD::operator() ( const int i,
const int = 0 ) [inline, virtual]
 

non constant, write access to elements.

Reimplemented from MatrixC.

double VectorD::operator() ( const int i,
const int = 0 ) const [inline, virtual]
 

constant, read only access to elements.

Reimplemented from MatrixC.

double * VectorD::ref ( const int i ) const [inline, protected]
 

low level reference to data returns a pointer, use this with care.

double VectorD::read ( const int i ) const [inline, protected]
 

low level read.

void VectorD::write ( const int i,
const double v ) [inline, protected]
 

low level write.

void VectorD::add ( const int i,
const double v ) [inline, protected]
 

low level add to.

void VectorD::sub ( const int i,
const double v ) [inline, protected]
 

low level sub from.

void VectorD::mul ( const int i,
const double v ) [inline, protected]
 

low level mul with.

void VectorD::div ( const int i,
const double v ) [inline, protected]
 

low level div by.

void VectorD::stream ( ostream & s ) [virtual]
 

output to stream.

Reimplemented from MatrixC.

VectorD VectorD::transpose ( ) const
 

return transposed Vector.

Reimplemented from MatrixC.

void VectorD::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 VectorD::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 VectorD::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 VectorD::multiply ( const VectorD & B ) const
 

dot product of this Vector with Vector B.

void VectorD::multiply ( const double value )
 

multiply this Vector with constant value and write to this Vector.

double VectorD::norm2 ( ) const
 

calculate L2 norm.


The documentation for this class was generated from the following file:
Generated at Wed Nov 22 08:38:29 2000 for LinAl - a simple and efficient Matrix library - by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000