CFL
Classes | Functions
Auxiliary functions and classes.
Collaboration diagram for Auxiliary functions and classes.:

Classes

class  cfl::Tridiag
 Solver for tridiagonal system of equations. More...
 

Functions

template<class T >
const T * cfl::begin (const std::valarray< T > &rIn)
 
template<class T >
const T * cfl::end (const std::valarray< T > &rIn)
 
template<class T >
bool cfl::equal (const std::valarray< T > &rIn1, const std::valarray< T > &rIn2)
 

Detailed Description

This group contains auxiliary (probably, unnecessary) functions and classes.

Function Documentation

template<class T >
const T* cfl::begin ( const std::valarray< T > &  rIn)

This function returns constant pointer to the first element of valarray. This allows us to use STL algorithms with valarray.

Parameters
rInA reference to valarray.
Returns
A constant pointer to the first element of valarray.
template<class T >
const T* cfl::end ( const std::valarray< T > &  rIn)

This function returns constant pointer to the memory position immediately following the last element of valarray. This allows us to use STL algorithms with valarray.

Parameters
rInA reference to valarray.
Returns
A constant pointer to the memory immediately following the last element of valarray.
template<class T >
bool cfl::equal ( const std::valarray< T > &  rIn1,
const std::valarray< T > &  rIn2 
)

This function compares the identity of two valarrays.

Parameters
rIn1The first valarray.
rIn2The second valarray.
Returns
Returns true if rIn1 equals rIn2 and false otherwise.