Sacado Development
Classes | Public Member Functions
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]
Collaboration diagram for Sacado::LFad::LogicalSparse< ValT, LogT >:
Collaboration 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.


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

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

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

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends