CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
sparse_internal.hpp File Reference

Routines that enable code to be independent of which internal spasity pattern is used. More...

Go to the source code of this file.

Classes

struct  CppAD::local::internal_sparsity< Element_type >
 Template structure used obtain the internal sparsity pattern type form the corresponding element type. More...
 
struct  CppAD::local::internal_sparsity< bool >
 Specilization for bool elements. More...
 
struct  CppAD::local::internal_sparsity< std::set< size_t > >
 Specilization for std::set<size_t> elements. More...
 

Namespaces

 CppAD
 contains all the variables and functions defined by the CppAD package.
 
 CppAD::local
 

Functions

template<class SizeVector , class InternalSparsity >
void CppAD::local::get_internal_sparsity (bool transpose, const vector< size_t > &internal_index, const InternalSparsity &internal_pattern, sparse_rc< SizeVector > &pattern_out)
 Get sparsity pattern for a sub-set of variables. More...
 
template<class InternalSparsity >
void CppAD::local::get_internal_sparsity (bool transpose, const vector< size_t > &internal_index, const InternalSparsity &internal_pattern, vectorBool &pattern_out)
 
template<class InternalSparsity >
void CppAD::local::get_internal_sparsity (bool transpose, const vector< size_t > &internal_index, const InternalSparsity &internal_pattern, vector< bool > &pattern_out)
 
template<class InternalSparsity >
void CppAD::local::get_internal_sparsity (bool transpose, const vector< size_t > &internal_index, const InternalSparsity &internal_pattern, vector< std::set< size_t > > &pattern_out)
 
template<class SizeVector , class InternalSparsity >
void CppAD::local::set_internal_sparsity (bool zero_empty, bool input_empty, bool transpose, const vector< size_t > &internal_index, InternalSparsity &internal_pattern, const sparse_rc< SizeVector > &pattern_in)
 Update the internal sparsity pattern for a sub-set of rows. More...
 
template<class InternalSparsity >
void CppAD::local::set_internal_sparsity (bool zero_empty, bool input_empty, bool transpose, const vector< size_t > &internal_index, InternalSparsity &internal_pattern, const vectorBool &pattern_in)
 
template<class InternalSparsity >
void CppAD::local::set_internal_sparsity (bool zero_empty, bool input_empty, bool transpose, const vector< size_t > &internal_index, InternalSparsity &internal_pattern, const vector< bool > &pattern_in)
 
template<class InternalSparsity >
void CppAD::local::set_internal_sparsity (bool zero_empty, bool input_empty, bool transpose, const vector< size_t > &internal_index, InternalSparsity &internal_pattern, const vector< std::set< size_t > > &pattern_in)
 

Detailed Description

Routines that enable code to be independent of which internal spasity pattern is used.

Definition in file sparse_internal.hpp.