19 typedef double scalar;
31 std::cout <<
"ORDERING : COLAMD\n";
41 if (argc < 2)
assert(
false &&
"please, give the matrix market file ");
43 cout <<
"End charging matrix " << endl;
44 bool iscomplex =
false, isvector =
false;
49 cout <<
"The provided file is not a matrix file\n";
76 cout <<
"Time to analyze " <<
timer.value() << std::endl;
81 cout <<
"Factorize Time " <<
timer.value() << std::endl;
86 cout <<
"solve time " <<
timer.value() << std::endl;
89 scalar tempNorm = tmp2.norm() /
b.norm();
90 cout <<
"Relative norm of the computed solution : " << tempNorm <<
"\n";
91 cout <<
"Number of nonzeros in the factor : " <<
solver.nnzL() +
solver.nnzU() << std::endl;
Matrix< Scalar, Dynamic, Dynamic > DenseMatrix
Definition: BenchSparseUtil.h:23
BiCGSTAB< SparseMatrix< double > > solver
Definition: BiCGSTAB_simple.cpp:5
int i
Definition: BiCGSTAB_step_by_step.cpp:9
const unsigned n
Definition: CG3DPackingUnitTest.cpp:11
#define assert(e,...)
Definition: Logger.h:744
Scalar * b
Definition: benchVecAdd.cpp:17
Matrix< SCALARA, Dynamic, Dynamic, opt_A > A
Definition: bench_gemm.cpp:47
Definition: BenchTimer.h:55
Definition: Ordering.h:109
The matrix class, also used for vectors and row-vectors.
Definition: Eigen/Eigen/src/Core/Matrix.h:186
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
Definition: PlainObjectBase.h:192
EIGEN_DEVICE_FUNC constexpr EIGEN_STRONG_INLINE void resize(Index rows, Index cols)
Definition: PlainObjectBase.h:294
Sparse supernodal LU factorization for general matrices.
Definition: SparseLU.h:151
ConstSelfAdjointViewReturnType< UpLo >::Type selfadjointView() const
A versatible sparse matrix representation.
Definition: SparseMatrix.h:121
@ Lower
Definition: Constants.h:211
Eigen::Matrix< Scalar, Dynamic, Dynamic, ColMajor > tmp
Definition: level3_impl.h:365
bool loadMarketVector(VectorType &vec, const std::string &filename)
Same functionality as loadMarketDense, deprecated.
Definition: MarketIO.h:284
bool loadMarket(SparseMatrixType &mat, const std::string &filename)
Loads a sparse matrix from a matrixmarket format file.
Definition: MarketIO.h:156
bool getMarketHeader(const std::string &filename, int &sym, bool &iscomplex, bool &isdense)
Reads the header of a matrixmarket file and determines the properties of a matrix.
Definition: MarketIO.h:122
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:83
line
Definition: calibrate.py:103
args
Definition: compute_granudrum_aor.py:143
list x
Definition: plotDoE.py:28
double timer
Definition: oomph_metis_from_parmetis_3.1.1/struct.h:210