![]() |
|
#include "main.h"
#include <unordered_map>
#include <Eigen/Cholesky>
#include <Eigen/LU>
#include <Eigen/Sparse>
Go to the source code of this file.
Macros | |
#define | EIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET |
#define | EIGEN_UNORDERED_MAP_SUPPORT |
Enumerations | |
enum | { ForceNonZeroDiag = 1 , MakeLowerTriangular = 2 , MakeUpperTriangular = 4 , ForceRealDiag = 8 } |
Functions | |
template<typename Scalar , int Opt1, int Opt2, typename StorageIndex > | |
void | initSparse (double density, Matrix< Scalar, Dynamic, Dynamic, Opt1 > &refMat, SparseMatrix< Scalar, Opt2, StorageIndex > &sparseMat, int flags=0, std::vector< Matrix< StorageIndex, 2, 1 > > *zeroCoords=0, std::vector< Matrix< StorageIndex, 2, 1 > > *nonzeroCoords=0) |
template<typename Scalar , int Options, typename Index > | |
void | initSparse (double density, Matrix< Scalar, Dynamic, 1 > &refVec, SparseVector< Scalar, Options, Index > &sparseVec, std::vector< int > *zeroCoords=0, std::vector< int > *nonzeroCoords=0) |
template<typename Scalar , int Options, typename Index > | |
void | initSparse (double density, Matrix< Scalar, 1, Dynamic > &refVec, SparseVector< Scalar, Options, Index > &sparseVec, std::vector< int > *zeroCoords=0, std::vector< int > *nonzeroCoords=0) |
#define EIGEN_UNORDERED_MAP_SUPPORT |
#define EIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET |
void initSparse | ( | double | density, |
Matrix< Scalar, 1, Dynamic > & | refVec, | ||
SparseVector< Scalar, Options, Index > & | sparseVec, | ||
std::vector< int > * | zeroCoords = 0 , |
||
std::vector< int > * | nonzeroCoords = 0 |
||
) |
void initSparse | ( | double | density, |
Matrix< Scalar, Dynamic, 1 > & | refVec, | ||
SparseVector< Scalar, Options, Index > & | sparseVec, | ||
std::vector< int > * | zeroCoords = 0 , |
||
std::vector< int > * | nonzeroCoords = 0 |
||
) |
References UniformPSDSelfTest::density, i, Eigen::SparseVector< Scalar_, Options_, StorageIndex_ >::insertBack(), Eigen::numext::is_exactly_zero(), Eigen::SparseVector< Scalar_, Options_, StorageIndex_ >::reserve(), Eigen::SparseVector< Scalar_, Options_, StorageIndex_ >::setZero(), and v.
void initSparse | ( | double | density, |
Matrix< Scalar, Dynamic, Dynamic, Opt1 > & | refMat, | ||
SparseMatrix< Scalar, Opt2, StorageIndex > & | sparseMat, | ||
int | flags = 0 , |
||
std::vector< Matrix< StorageIndex, 2, 1 > > * | zeroCoords = 0 , |
||
std::vector< Matrix< StorageIndex, 2, 1 > > * | nonzeroCoords = 0 |
||
) |
References Eigen::PlainObjectBase< Derived >::cols(), UniformPSDSelfTest::density, ForceNonZeroDiag, ForceRealDiag, i, Eigen::SparseMatrix< Scalar_, Options_, StorageIndex_ >::innerSize(), Eigen::SparseMatrix< Scalar_, Options_, StorageIndex_ >::insertByOuterInner(), Eigen::numext::is_exactly_zero(), j, MakeLowerTriangular, MakeUpperTriangular, Eigen::SparseMatrix< Scalar_, Options_, StorageIndex_ >::outerSize(), Eigen::SparseMatrix< Scalar_, Options_, StorageIndex_ >::reserve(), Eigen::PlainObjectBase< Derived >::rows(), Eigen::SparseMatrix< Scalar_, Options_, StorageIndex_ >::setZero(), swap(), and v.
Referenced by initSPD(), and sparse_product().