AbstractLinAlgPack: C++ Interfaces For Vectors, Matrices And Related Linear Algebra Objects  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Functions
Collaboration diagram for Transformation operations:

Functions

void AbstractLinAlgPack::Vp_S (VectorMutable *v_lhs, const value_type &alpha)
 v_lhs += alpha More...
 
void AbstractLinAlgPack::Vt_S (VectorMutable *v_lhs, const value_type &alpha)
 v_lhs *= alpha More...
 
void AbstractLinAlgPack::Vp_StV (VectorMutable *v_lhs, const value_type &alpha, const Vector &v_rhs)
 v_lhs = alpha * v_rhs + v_lhs More...
 
void AbstractLinAlgPack::Vp_StV (VectorMutable *v_lhs, const value_type &alpha, const SpVectorSlice &sv_rhs)
 v_lhs = alpha * sv_rhs + v_lhs More...
 
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. More...
 
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. More...
 
void AbstractLinAlgPack::seed_random_vector_generator (unsigned int)
 Seed the random number generator. More...
 
void AbstractLinAlgPack::random_vector (value_type l, value_type u, VectorMutable *v)
 Generate a random vector with elements uniformly distrubuted elements. More...
 
void AbstractLinAlgPack::sign (const Vector &v, VectorMutable *z)
 Compute the sign of each element in an input vector. More...
 

Detailed Description

Function Documentation

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

v_lhs += alpha

Definition at line 166 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 176 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 191 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 203 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 215 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 228 of file AbstractLinAlgPack_VectorStdOps.cpp.

void AbstractLinAlgPack::seed_random_vector_generator ( unsigned int  s)

Seed the random number generator.

Definition at line 242 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 247 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 259 of file AbstractLinAlgPack_VectorStdOps.cpp.