Transformation operations
[Collection of standard vector operations.]

Collaboration diagram for Transformation operations:

Functions

void AbstractLinAlgPack::Vp_S (VectorMutable *v_lhs, const value_type &alpha)
 v_lhs += alpha
void AbstractLinAlgPack::Vt_S (VectorMutable *v_lhs, const value_type &alpha)
 v_lhs *= alpha
void AbstractLinAlgPack::Vp_StV (VectorMutable *v_lhs, const value_type &alpha, const Vector &v_rhs)
 v_lhs = alpha * v_rhs + v_lhs
void AbstractLinAlgPack::Vp_StV (VectorMutable *v_lhs, const value_type &alpha, const SpVectorSlice &sv_rhs)
 v_lhs = alpha * sv_rhs + v_lhs
void AbstractLinAlgPack::ele_wise_prod (const value_type &alpha, const Vector &v_rhs1, const Vector &v_rhs2, VectorMutable *v_lhs)
 v_lhs(i) += alpha * v_rhs1(i) * v_rhs2(i), i = 1,,,dim.
void AbstractLinAlgPack::ele_wise_divide (const value_type &alpha, const Vector &v_rhs1, const Vector &v_rhs2, VectorMutable *v_lhs)
 v_lhs(i) = alpha * v_rhs1(i) / v_rhs2(i), i = 1,,,dim.
void AbstractLinAlgPack::seed_random_vector_generator (unsigned int)
 Seed the random number generator.
void AbstractLinAlgPack::random_vector (value_type l, value_type u, VectorMutable *v)
 Generate a random vector with elements uniformly distrubuted elements.
void AbstractLinAlgPack::sign (const Vector &v, VectorMutable *z)
 Compute the sign of each element in an input vector.

Detailed Description


Function Documentation

void AbstractLinAlgPack::Vp_S ( VectorMutable *  v_lhs,
const value_type &  alpha 
)

v_lhs += alpha

Definition at line 153 of file AbstractLinAlgPack_VectorStdOps.cpp.

void AbstractLinAlgPack::Vt_S ( VectorMutable *  v_lhs,
const value_type &  alpha 
)

v_lhs *= alpha

This takes care of the special cases of alpha == 0.0 (set v_lhs = 0.0) and alpha == 1.0 (don't do anything).

Definition at line 163 of file AbstractLinAlgPack_VectorStdOps.cpp.

void AbstractLinAlgPack::Vp_StV ( VectorMutable *  v_lhs,
const value_type &  alpha,
const Vector &  v_rhs 
)

v_lhs = alpha * v_rhs + v_lhs

Definition at line 178 of file AbstractLinAlgPack_VectorStdOps.cpp.

void AbstractLinAlgPack::Vp_StV ( VectorMutable *  v_lhs,
const value_type &  alpha,
const SpVectorSlice &  sv_rhs 
)

v_lhs = alpha * sv_rhs + v_lhs

Definition at line 190 of file AbstractLinAlgPack_VectorStdOps.cpp.

void AbstractLinAlgPack::ele_wise_prod ( const value_type &  alpha,
const Vector &  v_rhs1,
const Vector &  v_rhs2,
VectorMutable *  v_lhs 
)

v_lhs(i) += alpha * v_rhs1(i) * v_rhs2(i), i = 1,,,dim.

Definition at line 202 of file AbstractLinAlgPack_VectorStdOps.cpp.

void AbstractLinAlgPack::ele_wise_divide ( const value_type &  alpha,
const Vector &  v_rhs1,
const Vector &  v_rhs2,
VectorMutable *  v_lhs 
)

v_lhs(i) = alpha * v_rhs1(i) / v_rhs2(i), i = 1,,,dim.

Definition at line 215 of file AbstractLinAlgPack_VectorStdOps.cpp.

void AbstractLinAlgPack::seed_random_vector_generator ( unsigned int  s  ) 

Seed the random number generator.

Definition at line 229 of file AbstractLinAlgPack_VectorStdOps.cpp.

void AbstractLinAlgPack::random_vector ( value_type  l,
value_type  u,
VectorMutable *  v 
)

Generate a random vector with elements uniformly distrubuted elements.

The elements are randomly generated between [l,u].

Definition at line 234 of file AbstractLinAlgPack_VectorStdOps.cpp.

void AbstractLinAlgPack::sign ( const Vector &  v,
VectorMutable *  z 
)

Compute the sign of each element in an input vector.


         / -1.0 : if v(i)  < 0.0
 z(i) =  |  0.0 : if v(i) == 0.0
         \ +1.0 : if v(i)  < 0.0

 , for i = 1...n
 

Definition at line 246 of file AbstractLinAlgPack_VectorStdOps.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
Generated on Wed Apr 13 10:09:16 2011 for AbstractLinAlgPack: C++ Interfaces For Vectors, Matrices And Related Linear Algebra Objects by  doxygen 1.6.3