* \brief Initializes this SparseMatrix with the given sparsity pattern and (if not fixed by the template argument) * with the given number of batches. * The coefficient array is allocated, but uninitialized. * * \param sparsityPattern the sparsity pattern * \param batches the number of batches */
| 93 | * \param batches the number of batches |
| 94 | */ |
| 95 | SparseMatrix(const SparsityPattern<_SparseFlags>& sparsityPattern, Index batches = _Batches) |
| 96 | : Base(sparsityPattern, batches) |
| 97 | , A_(sparsityPattern.template allocateDataMatrix<_Scalar, _Batches>(batches)) |
| 98 | { |
| 99 | } |
| 100 | |
| 101 | /** |
| 102 | * \brief Direct access to the underlying data. |