Sacado  Development
Classes | Public Types | List of all members
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>

Classes

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

Public Types

typedef LogicalSparseImp< ValT, LogT > ImplType
 Base classes.
 
typedef Expr< ImplTypeExprType
 
typedef ExprType::value_type value_type
 Typename of values.
 
typedef ExprType::scalar_type scalar_type
 Typename of scalar's (which may be different from value_type)
 

Public Member Functions

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

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

◆ LogicalSparse() [1/4]

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

Default constructor.

Initializes value to 0 and derivative array is empty

◆ LogicalSparse() [2/4]

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

Constructor with supplied value x of type ValueT.

Initializes value to x and derivative array is empty

◆ LogicalSparse() [3/4]

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

◆ LogicalSparse() [4/4]

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: