![]() |
|
Functions | |
std::string | GetTestTempFilename (const char *filename) |
template<typename SetterType , typename DenseType , typename Scalar , int Options> | |
bool | test_random_setter (SparseMatrix< Scalar, Options > &sm, const DenseType &ref, const std::vector< Vector2i > &nonzeroCoords) |
template<typename SparseMatrixType > | |
void | sparse_extra (const SparseMatrixType &ref) |
template<typename SparseMatrixType > | |
void | check_marketio () |
template<typename VectorType > | |
void | check_marketio_vector () |
template<typename DenseMatrixType > | |
void | check_marketio_dense () |
template<typename Scalar > | |
void | check_sparse_inverse () |
EIGEN_DECLARE_TEST (sparse_extra) | |
void check_marketio | ( | ) |
References cols, MergeRestartFiles::filename, GetTestTempFilename(), Eigen::loadMarket(), m1, m2(), rows, Eigen::saveMarket(), oomph::Global_string_for_annotation::string(), and VERIFY_IS_EQUAL.
Referenced by EIGEN_DECLARE_TEST().
void check_marketio_dense | ( | ) |
References cols, Eigen::Dynamic, MergeRestartFiles::filename, GetTestTempFilename(), Eigen::loadMarketDense(), m1, m2(), rows, Eigen::saveMarketDense(), oomph::Global_string_for_annotation::string(), and VERIFY_IS_EQUAL.
Referenced by EIGEN_DECLARE_TEST().
void check_marketio_vector | ( | ) |
References MergeRestartFiles::filename, GetTestTempFilename(), Eigen::loadMarketVector(), Eigen::saveMarketVector(), size, oomph::Global_string_for_annotation::string(), v1(), v2(), and VERIFY_IS_EQUAL.
Referenced by EIGEN_DECLARE_TEST().
void check_sparse_inverse | ( | ) |
References abs(), Eigen::PlainObjectBase< Derived >::cols(), Eigen::SparseLU< MatrixType_, OrderingType_ >::compute(), Eigen::SparseInverse< Scalar >::compute(), e(), Eigen::SparseInverse< Scalar >::inverse(), j, Eigen::PlainObjectBase< Derived >::resize(), Eigen::PlainObjectBase< Derived >::rows(), Eigen::SparseSolverBase< Derived >::solve(), and VERIFY_IS_APPROX_OR_LESS_THAN.
EIGEN_DECLARE_TEST | ( | sparse_extra | ) |
std::string GetTestTempFilename | ( | const char * | filename | ) |
References MergeRestartFiles::filename, and oomph::Global_string_for_annotation::string().
Referenced by check_marketio(), check_marketio_dense(), and check_marketio_vector().
void sparse_extra | ( | const SparseMatrixType & | ref | ) |
References Eigen::Matrix< Scalar_, Rows_, Cols_, Options_, MaxRows_, MaxCols_ >::coeffRef(), cols, UniformPSDSelfTest::density, e(), CRBond_Bessel::eps, i, int(), m, max, rows, test_random_setter(), Eigen::value, vec1(), VERIFY, VERIFY_IS_APPROX, VERIFY_IS_MUCH_SMALLER_THAN, VERIFY_RAISES_ASSERT, plotDoE::x, y, and oomph::PseudoSolidHelper::Zero.
Referenced by EIGEN_DECLARE_TEST().
bool test_random_setter | ( | SparseMatrix< Scalar, Options > & | sm, |
const DenseType & | ref, | ||
const std::vector< Vector2i > & | nonzeroCoords | ||
) |
References i, Eigen::SparseMatrixBase< Derived >::isApprox(), Eigen::SparseMatrix< Scalar_, Options_, StorageIndex_ >::setZero(), w, plotDoE::x, and y.
Referenced by sparse_extra().