Sacado::LFad::LogicalSparse< ValT, LogT > Class Template Reference

User inteface class for computing the logical sparsity pattern of a derivative via forward-mode AD. More...

#include <Sacado_LFad_LogicalSparse.hpp>

Inheritance diagram for Sacado::LFad::LogicalSparse< ValT, LogT >:
Inheritance graph
[legend]

List of all members.

Classes

struct  apply
 Turn LogicalSparse into a meta-function class usable with mpl::apply. More...

Public Member Functions

 ~LogicalSparse ()
 Destructor.
LogicalSparseoperator= (const ValT &v)
 Assignment operator with constant right-hand-side.
LogicalSparseoperator= (const LogicalSparse &x)
 Assignment operator with LogicalSparse right-hand-side.
template<typename S >
LogicalSparseoperator= (const Expr< S > &x)
 Assignment operator with any expression right-hand-side.

Initialization methods



 LogicalSparse ()
 Default constructor.
 LogicalSparse (const ValT &x)
 Constructor with supplied value x of type ValueT.
 LogicalSparse (const int sz, const ValT &x)
 Constructor with size sz and value x.
 LogicalSparse (const int sz, const int i, const ValT &x)
 Constructor with size sz, index i, and value x.
 LogicalSparse (const LogicalSparse &x)
 Copy constructor.
template<typename S >
 LogicalSparse (const Expr< S > &x)
 Copy constructor from any Expression object.

Detailed Description

template<typename ValT, typename LogT>
class Sacado::LFad::LogicalSparse< ValT, LogT >

User inteface class for computing the logical sparsity pattern of a derivative via forward-mode AD.

Definition at line 247 of file Sacado_LFad_LogicalSparse.hpp.


Constructor & Destructor Documentation

template<typename ValT, typename LogT>
Sacado::LFad::LogicalSparse< ValT, LogT >::LogicalSparse (  )  [inline]

Default constructor.

Initializes value to 0 and derivative array is empty

Definition at line 266 of file Sacado_LFad_LogicalSparse.hpp.

template<typename ValT, typename LogT>
Sacado::LFad::LogicalSparse< ValT, LogT >::LogicalSparse ( const ValT &  x  )  [inline]

Constructor with supplied value x of type ValueT.

Initializes value to x and derivative array is empty

Definition at line 273 of file Sacado_LFad_LogicalSparse.hpp.

template<typename ValT, typename LogT>
Sacado::LFad::LogicalSparse< ValT, LogT >::LogicalSparse ( const int  sz,
const ValT &  x 
) [inline]

Constructor with size sz and value x.

Initializes value to x and derivative array 0 of length sz

Definition at line 280 of file Sacado_LFad_LogicalSparse.hpp.

template<typename ValT, typename LogT>
Sacado::LFad::LogicalSparse< ValT, LogT >::LogicalSparse ( const int  sz,
const int  i,
const ValT &  x 
) [inline]

Constructor with size sz, index i, and value x.

Initializes value to x and derivative array of length sz as row i of the identity matrix, i.e., sets derivative component i to 1 and all other's to zero.

Definition at line 289 of file Sacado_LFad_LogicalSparse.hpp.

template<typename ValT, typename LogT>
Sacado::LFad::LogicalSparse< ValT, LogT >::LogicalSparse ( const LogicalSparse< ValT, LogT > &  x  )  [inline]

Copy constructor.

Definition at line 293 of file Sacado_LFad_LogicalSparse.hpp.

template<typename ValT, typename LogT>
template<typename S >
Sacado::LFad::LogicalSparse< ValT, LogT >::LogicalSparse ( const Expr< S > &  x  )  [inline]

Copy constructor from any Expression object.

Definition at line 297 of file Sacado_LFad_LogicalSparse.hpp.

template<typename ValT, typename LogT>
Sacado::LFad::LogicalSparse< ValT, LogT >::~LogicalSparse (  )  [inline]

Destructor.

Definition at line 303 of file Sacado_LFad_LogicalSparse.hpp.


Member Function Documentation

template<typename ValT, typename LogT>
LogicalSparse& Sacado::LFad::LogicalSparse< ValT, LogT >::operator= ( const ValT &  v  )  [inline]

Assignment operator with constant right-hand-side.

Reimplemented from Sacado::LFad::LogicalSparseImp< ValT, LogT >.

Definition at line 306 of file Sacado_LFad_LogicalSparse.hpp.

template<typename ValT, typename LogT>
LogicalSparse& Sacado::LFad::LogicalSparse< ValT, LogT >::operator= ( const LogicalSparse< ValT, LogT > &  x  )  [inline]

Assignment operator with LogicalSparse right-hand-side.

Definition at line 312 of file Sacado_LFad_LogicalSparse.hpp.

template<typename ValT, typename LogT>
template<typename S >
LogicalSparse& Sacado::LFad::LogicalSparse< ValT, LogT >::operator= ( const Expr< S > &  x  )  [inline]

Assignment operator with any expression right-hand-side.

Reimplemented from Sacado::LFad::LogicalSparseImp< ValT, LogT >.

Definition at line 318 of file Sacado_LFad_LogicalSparse.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Wed Apr 13 10:19:44 2011 for Sacado Package Browser (Single Doxygen Collection) by  doxygen 1.6.3