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 Reduction operations:

Functions

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

Detailed Description

Function Documentation

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

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

Definition at line 121 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 130 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 139 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 164 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 151 of file AbstractLinAlgPack_VectorStdOps.cpp.