* \brief Initializes the Conjugate Gradient with the specified matrix. * The preconditioner is created with \code Preconditioner(matrix) \endcode. * \param matrix the matrix that is used in the CG. */
| 94 | * \param matrix the matrix that is used in the CG. |
| 95 | */ |
| 96 | ConjugateGradient(const MatrixBase<_MatrixType>& matrix) |
| 97 | : Base(matrix) |
| 98 | { |
| 99 | CUMAT_ASSERT(matrix.rows() == matrix.cols() && "Matrix must be square"); |
| 100 | } |
| 101 | |
| 102 | /** |
| 103 | * \brief Initializes the Conjugate Gradient with the specified matrix |
no test coverage detected