Go to the documentation of this file.
11 #ifndef EIGEN_BROWSE_MATRICES_H
12 #define EIGEN_BROWSE_MATRICES_H
41 template <
typename Scalar>
82 std::cerr <<
"Warning loadMarket failed when loading \"" << matrix_file <<
"\"" << std::endl;
94 if(lower_norm>diag_norm && upper_norm==diag_norm)
98 m_mat = tmp.template selfadjointView<Lower>();
100 else if(upper_norm>diag_norm && lower_norm==diag_norm)
104 m_mat = tmp.template selfadjointView<Upper>();
118 std::string rhs_file;
150 std::string lhs_file;
175 std::ifstream file_id(
file.c_str());
176 if (!file_id.good() )
196 if (
m_curs_id->d_type == DT_DIR)
continue;
202 bool isvector,iscomplex=
false;
204 if(isvector)
continue;
bool Fileexists(std::string file)
Namespace containing all symbols from the Eigen library.
Derived & setRandom(Index size)
struct dirent * m_curs_id
SparseMatrix< Scalar, ColMajor > MatrixType
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void resize(Index rows, Index cols)
MatrixMarketIterator & operator++()
bool loadMarketVector(VectorType &vec, const std::string &filename)
const ConstDiagonalReturnType diagonal() const
NumTraits< Scalar >::Real RealScalar
void Getnextvalidmatrix()
bool getMarketHeader(const std::string &filename, int &sym, bool &iscomplex, bool &isvector)
MatrixMarketIterator(const std::string &folder)
Iterator to browse matrices from a specified folder.
bool loadMarket(SparseMatrixType &mat, const std::string &filename)
A triangularView< Lower >().adjoint().solveInPlace(B)
Holds information about the various numeric (i.e. scalar) types allowed by Eigen.
Matrix< Scalar, Dynamic, 1 > VectorType
gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:33:43