eigen/doc/MatrixfreeSolverExample.dox

20 lines
758 B
Plaintext
Raw Normal View History

2015-12-07 19:33:38 +08:00
namespace Eigen {
/**
\eigenManualPage MatrixfreeSolverExample Matrix-free solvers
Iterative solvers such as ConjugateGradient and BiCGSTAB can be used in a matrix free context. To this end, user must provide a wrapper class inheriting EigenBase<> and implementing the following methods:
2016-07-27 05:51:43 +08:00
- \c Index \c rows() and \c Index \c cols(): returns number of rows and columns respectively
- \c operator* with your type and an %Eigen dense column vector (its actual implementation goes in a specialization of the internal::generic_product_impl class)
2015-12-07 19:33:38 +08:00
2016-07-27 05:51:43 +08:00
\c Eigen::internal::traits<> must also be specialized for the wrapper type.
2015-12-07 19:33:38 +08:00
2016-07-27 05:51:43 +08:00
Here is a complete example wrapping an Eigen::SparseMatrix:
2015-12-07 19:33:38 +08:00
\include matrixfree_cg.cpp
Output: \verbinclude matrixfree_cg.out
*/
}