Reduction operations
[Collection of standard vector operations.]


Functions

value_type AbstractLinAlgPack::sum (const Vector &v_rhs)
 result = sum( v_rhs(i), i = 1,,,dim )
value_type AbstractLinAlgPack::dot (const Vector &v_rhs1, const Vector &v_rhs2)
 result = v_rhs1' * v_rhs2
value_type AbstractLinAlgPack::dot (const Vector &v_rhs1, const SpVectorSlice &sv_rhs2)
 result = v_rhs1' * sv_rhs2
value_type AbstractLinAlgPack::dot (const SpVectorSlice &sv_rhs1, const Vector &v_rhs2)
 result = sv_rhs1' * v_rhs2
void AbstractLinAlgPack::max_abs_ele (const Vector &v, value_type *max_v_j, index_type *max_j)
 Compute the maximum element in a vector.

Function Documentation

AbstractLinAlgPack::value_type AbstractLinAlgPack::sum const Vector &  v_rhs  ) 
 

result = sum( v_rhs(i), i = 1,,,dim )

Definition at line 108 of file AbstractLinAlgPack_VectorStdOps.cpp.

AbstractLinAlgPack::value_type AbstractLinAlgPack::dot const Vector &  v_rhs1,
const Vector &  v_rhs2
 

result = v_rhs1' * v_rhs2

Definition at line 117 of file AbstractLinAlgPack_VectorStdOps.cpp.

AbstractLinAlgPack::value_type AbstractLinAlgPack::dot const Vector &  v_rhs1,
const SpVectorSlice sv_rhs2
 

result = v_rhs1' * sv_rhs2

Definition at line 126 of file AbstractLinAlgPack_VectorStdOps.cpp.

AbstractLinAlgPack::value_type AbstractLinAlgPack::dot const SpVectorSlice sv_rhs1,
const Vector &  v_rhs2
[inline]
 

result = sv_rhs1' * v_rhs2

Definition at line 151 of file AbstractLinAlgPack_VectorStdOps.hpp.

void AbstractLinAlgPack::max_abs_ele const Vector &  v,
value_type max_v_j,
index_type max_j
 

Compute the maximum element in a vector.

Parameters:
v [in] The vector being searched
max_v_j [out] The value of the element with the max abs value.
max_j [out] The index of the element with the max abs value.
Returns:

 max_v_j = v(max_j) s.t. |v(max_j)| <= |v(j)|, for j = 1...n
 
If there is a tie, the lowest index is returned so that the result is unique no matter what order the vector elements are searched.

Definition at line 138 of file AbstractLinAlgPack_VectorStdOps.cpp.


Generated on Thu Sep 18 12:36:06 2008 for MOOCHO (Single Doxygen Collection) by doxygen 1.3.9.1