Main Page | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Globals

vector.h File Reference

Go to the source code of this file.

Functions

template<class S>
void scalar_product (const vector< S > &_x, const vector< S > &_y, S &_s)
template<class S>
void scalar_product (const vector< S > &_x, const vector< S > &_y, vector< S > &_s)
template<class S>
void add_scale (vector< S > &_x, const vector< S > &_y, const S _s)
template<class S>
void add_scale (vector< S > &_x, const vector< S > &_y, const vector< S > &_s)
template<class S>
void sub_scale (vector< S > &_x, const vector< S > &_y, const S _s)
template<class S>
void sub_scale (vector< S > &_x, const vector< S > &_y, const vector< S > &_s)
template<class S>
void scale_add (vector< S > &_x, const vector< S > &_y, const S _s)
template<class S>
void scale_add (vector< S > &_x, const vector< S > &_y, const vector< S > &_s)
template<class T, class S>
void element_accumulation (const vector< T > &_hdr, vector< T > &_con, vector< T > &_row, vector< T > &_col, vector< S > &_ele)
template<class T, class S>
void diagonal (const vector< T > &_con, const vector< T > &_row, const vector< T > &_col, const vector< S > &_ele, vector< S > &_dia)


Function Documentation

template<class S>
void add_scale vector< S > &  _x,
const vector< S > &  _y,
const vector< S > &  _s
 

The add_scale procedure calculates the sum of two packed vectors, scaling the second packed vector. x += y * s

Parameters:
_x Input: Numerical vector, first argument. Output: Scaled vector sum. x += y * s
_y Input: Numerical vector, second argument.
_s Input: Vector of scaling factors.

template<class S>
void add_scale vector< S > &  _x,
const vector< S > &  _y,
const S  _s
 

The add_scale procedure calculates the sum of two vectors, scaling the second vector. x += y * s

Parameters:
_x Input: Numerical vector, first argument. Output: Scaled vector sum. x += y * s
_y Input: Numerical vector, second argument.
_s Input: Scaling factor.

template<class T, class S>
void diagonal const vector< T > &  _con,
const vector< T > &  _row,
const vector< T > &  _col,
const vector< S > &  _ele,
vector< S > &  _dia
 

The diagonal procedure extracts the diagonal from the local finite element matrix.

Parameters:
_con input: Vector of global node numbers for the current process.
_row Input: Vector of local row indices.
_col Input: Vector of local column indices.
_ele Input: Vector of the accumulated matrix values.
_dia Output: Vector of the diagonal matrix values.

template<class T, class S>
void element_accumulation const vector< T > &  _hdr,
vector< T > &  _con,
vector< T > &  _row,
vector< T > &  _col,
vector< S > &  _ele
 

The element_accumulation procedure accumulates the local finite element matrix and calculates the set of global node numbers for the current process.

Parameters:
_hdr Input: Vector of header information.
_con input: Vector of mesh connectivity data. Output: Vector of global node numbers for the current process.
_row Input: Vector of global row indices. Output: Vector of local row indices.
_col Input: Vector of global column indices. Output: Vector of local column indices.
_ele Input: Vector of element matrix values. Output: Vector of the accumulated matrix values.

template<class S>
void scalar_product const vector< S > &  _x,
const vector< S > &  _y,
vector< S > &  _s
 

The scalar_product procedure calculates the scalar product for two packed vectors.

Parameters:
_x Input: Numerical vector, first argument.
_y Input: Numerical vector, second argument.
_s Output: Vector of scalar products.

template<class S>
void scalar_product const vector< S > &  _x,
const vector< S > &  _y,
S &  _s
 

The scalar_product procedure calculates the scalar product for two vectors.

Parameters:
_x Input: Numerical vector, first argument.
_y Input: Numerical vector, second argument.
_s Output: Scalar product.

template<class S>
void scale_add vector< S > &  _x,
const vector< S > &  _y,
const vector< S > &  _s
 

The scale_add procedure calculates the sum of two packed vectors, scaling the first packed vector. x = x * s + y

Parameters:
_x Input: Numerical vector, first argument. Output: Scaled vector sum. x = x * s + y
_y Input: Numerical vector, second argument.
_s Input: Vector of scaling factors.

template<class S>
void scale_add vector< S > &  _x,
const vector< S > &  _y,
const S  _s
 

The scale_add procedure calculates the sum of two vectors, scaling the first vector. x = x * s + y

Parameters:
_x Input: Numerical vector, first argument. Output: Scaled vector sum. x = x * s + y
_y Input: Numerical vector, second argument.
_s Input: Scaling factor.

template<class S>
void sub_scale vector< S > &  _x,
const vector< S > &  _y,
const vector< S > &  _s
 

The sub_scale procedure calculates the difference of two packed vectors, scaling the second packed vector. x -= y * s

Parameters:
_x Input: Numerical vector, first argument. Output: Scaled vector sum. x -= y * s
_y Input: Numerical vector, second argument.
_s Input: Vector of scaling factors.

template<class S>
void sub_scale vector< S > &  _x,
const vector< S > &  _y,
const S  _s
 

The sub_scale procedure calculates the difference of two vectors, scaling the second vector. x -= y * s

Parameters:
_x Input: Numerical vector, first argument. Output: Scaled vector sum. x -= y * s
_y Input: Numerical vector, second argument.
_s Input: Scaling factor.


Generated on Wed Apr 26 17:41:45 2006 for Parallel Toolbox by  doxygen 1.4.2