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

RazorBack Namespace Reference


Compounds

class  RazorBack::Lu_
 Lu_: a class for doing LU-decomposition. More...

class  RazorBack::Rsymdiag_
 Class Rsymdiag_: an object from this class can be initialised with a real symmetric matrix and its methods allow various diagonalisation tasks to be carried out, such as eigenvalues only, all eigenvalues and eigenvectors, all eigenvalues/some eigenvectors, and selected eigenvalue/eigenvector pairs. More...

struct  RazorBack::Rsymdiag_::Eigidx_
 Eigidx_: object for eigenvalue sorting where the eigenvalue remembers where it came from. More...

struct  RazorBack::Rsymdiag_::Evaloc_
 Evaloc_: object for keeping track of intervals containing eigenvalues during the bisection process. More...

class  RazorBack::Rsymdiagexc_
 An Rsymdiagexc_ exception can be thrown if something went wrong. More...

class  RazorBack::Safety_
class  RazorBack::Squarexc_
 Squarexc_: this exception is thrown when an operation is performed on a general rectangular matrix which is permitted for square matrices only (such as adjusting the main diagonal). More...

class  RazorBack::Svd_
 Class Svd_ : a simple class for Singular Value Decomposition. More...

class  RazorBack::Svdexc_
 An Svdexc_ exception can be thrown if something went wrong in Svd_::make_decomp(). More...

class  RazorBack::Matstorage_
 Matstorage_: helper class that contains an STL vector and its length. More...

class  RazorBack::Basemat_
 Basemat_: implements the matrix element storage supporting copy-on-write and all matrix operations which can be performed on all matrix elements in parallel, irrespective of the layout. More...

class  RazorBack::Rectmat_
 Class Rectmat_: a class of rectangular matrices (Row x Col). More...

class  RazorBack::Symmat_
 Class Symmat_: a class of symmetric square matrices (Row x Row). More...

class  RazorBack::Vector_
 Vector_: this class implements a template for a linear algebra vector class. More...


Typedefs

typedef Rectmat_<double> Rmatdbl_
typedef Rectmat_<float> Rmatflt_
typedef Symmat_<double> Smatdbl_
typedef Symmat_<float> Smatflt_
typedef Vector_<double> Vecdbl_
 Float and double vectors (for convenience).

typedef Vector_<float> Vecflt_

Functions

istream& operator>> (istream &In, Basemat_< T_ > &Mat)
 Reads a matrix from In.

template<class T_> ostream& operator<< (ostream &Out, const Basemat_< T_ > &Mat)
 Writes a matrix to Out.

Rectmat_<T_> operator * (const T_ &Factor, const Rectmat_< T_ > &Bm)
 Pre-multiplication of a rectangular matrix with a scalar.

Rectmat_<T_> operator+ (const Rectmat_< T_ > &R, const Symmat_< T_ > &S)
Rectmat_<T_> operator- (const Rectmat_< T_ > &Mat, const Symmat_< T_ > &Sym)
Symmat_<T_> operator * (const T_ &Factor, const Symmat_< T_ > &Bm)
Rectmat_<T_> operator * (const Rectmat_< T_ > &Rect, const Symmat_< T_ > &Sym)
Vector_<T_> operator * (const T_ &X, const Vector_< T_ > &V)
 Pre-multiplies the vector V with scalar X.

Vector_<T_> cross_prod (const Vector_< T_ > &V1, const Vector_< T_ > &V2)
 cross_prod(): returns the cross-product of two 3D vectors. More...

T_ vec_len2 (const Vector_< T_ > &V)
 vec_len2(): calculates the square of the Euclidean norm. More...

T_ vec_len (const Vector_< T_ > &V)
 vec_len(): returns the Euclidean norm for types T_ which support a sqrt(T_) operation.

T_ diff_len2 (const Vector_< T_ > &V1, const Vector_< T_ > &V2)
 diff_len2(): returns the squared length of V1-V2. More...

istream& operator>> (istream &In, Vector_< T_ > &V)
 Reads a vector V from the stream In. More...

template<class T_> ostream& operator<< (ostream &Out, const Vector_< T_ > &V)
 Writes the vector V to stream Out.


Typedef Documentation

typedef Rectmat_<double> RazorBack::Rmatdbl_
 

Definition at line 214 of file Rectmat.hh.

typedef Rectmat_<float> RazorBack::Rmatflt_
 

Definition at line 215 of file Rectmat.hh.

typedef Symmat_<double> RazorBack::Smatdbl_
 

Definition at line 239 of file Symmat.hh.

typedef Symmat_<float> RazorBack::Smatflt_
 

Definition at line 240 of file Symmat.hh.

typedef Vector_< double > RazorBack::Vecdbl_
 

Float and double vectors (for convenience).

Definition at line 280 of file Vector.hh.

typedef Vector_<float> RazorBack::Vecflt_
 

Definition at line 281 of file Vector.hh.


Function Documentation

istream & RazorBack::operator>> ( istream & In,
Basemat_< T_ > & Mat )
 

Reads a matrix from In.

Definition at line 257 of file Basemat.hh.

template<class T_>
ostream & RazorBack::operator<< ( ostream & Out,
const Basemat_< T_ > & Mat )
 

Writes a matrix to Out.

Definition at line 264 of file Basemat.hh.

Rectmat_< T_ > RazorBack::operator * ( const T_ & Factor,
const Rectmat_< T_ > & Bm )
 

Pre-multiplication of a rectangular matrix with a scalar.

Rectmat_<T_> operator+ ( const Rectmat_< T_ > & R,
const Symmat_< T_ > & S )
 

Definition at line 227 of file Symmat.hh.

Rectmat_<T_> operator- ( const Rectmat_< T_ > & Mat,
const Symmat_< T_ > & Sym )
 

Symmat_<T_> operator * ( const T_ & Factor,
const Symmat_< T_ > & Bm )
 

Rectmat_<T_> operator * ( const Rectmat_< T_ > & Rect,
const Symmat_< T_ > & Sym )
 

Vector_< T_ > RazorBack::operator * ( const T_ & X,
const Vector_< T_ > & V )
 

Pre-multiplies the vector V with scalar X.

Vector_< T_ > RazorBack::cross_prod ( const Vector_< T_ > & V1,
const Vector_< T_ > & V2 )
 

cross_prod(): returns the cross-product of two 3D vectors.

If either of the arguments are not 3D, then a Dimexc_ exception is thrown.

T_ RazorBack::vec_len2 ( const Vector_< T_ > & V )
 

vec_len2(): calculates the square of the Euclidean norm.

This can be invoked as "vec_len2(Vector)". Note that there is a member function version, too. Just syntactic sugar :-)

Definition at line 237 of file Vector.hh.

T_ RazorBack::vec_len ( const Vector_< T_ > & V )
 

vec_len(): returns the Euclidean norm for types T_ which support a sqrt(T_) operation.

Definition at line 244 of file Vector.hh.

T_ RazorBack::diff_len2 ( const Vector_< T_ > & V1,
const Vector_< T_ > & V2 )
 

diff_len2(): returns the squared length of V1-V2.

On dim mismatch a Dimexc_ exception is thrown.

istream & RazorBack::operator>> ( istream & In,
Vector_< T_ > & V )
 

Reads a vector V from the stream In.

This is how the vector format looks like:-

    ------------------
    0 | -1.740000e+01
    1 | -2.320000e+01
    2 | -2.900000e+01
    ==================
    

Definition at line 267 of file Vector.hh.

template<class T_>
ostream & RazorBack::operator<< ( ostream & Out,
const Vector_< T_ > & V )
 

Writes the vector V to stream Out.


Generated at Wed Aug 21 09:33:28 2002 for The Razorback C++ Library: Linear Algebra by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001