TMB Documentation  v1.9.11
Namespaces | Functions
spmat.hpp File Reference

Extends Eigen::SparseMatrix class. More...

Go to the source code of this file.

Namespaces

 tmbutils
 Utility functions for TMB (automatically included)
 

Functions

template<class Type >
Eigen::SparseMatrix< Type > tmbutils::asSparseMatrix (SEXP M)
 
template<class Type >
Eigen::SparseMatrix< Type > tmbutils::asSparseMatrix (matrix< Type > x)
 Create sparse matrix from dense matrix. More...
 
template<class Type >
Eigen::SparseVector< Type > tmbutils::asSparseVector (vector< Type > x)
 Create sparse vector from dense vector. More...
 
template<class Type >
matrix< Type > tmbutils::discrLyap (matrix< Type > A_)
 
template<class Type >
matrix< Type > tmbutils::invertSparseMatrix (Eigen::SparseMatrix< Type > A)
 
template<class Type >
bool tmbutils::isStructuralZero (Type x)
 Test if a scalar is a structural zero. More...
 
template<class Type >
Eigen::SparseMatrix< Type > tmbutils::kronecker (Eigen::SparseMatrix< Type > x, Eigen::SparseMatrix< Type > y)
 

Detailed Description

Extends Eigen::SparseMatrix class.

Definition in file spmat.hpp.

License: GPL v2