| // SPDX-FileCopyrightText: The Eigen Authors | |
| // SPDX-License-Identifier: MPL-2.0 | |
| #include "../Eigen/Sparse" | |
| using namespace Eigen; | |
| #ifdef EIGEN_SHOULD_FAIL_TO_BUILD | |
| using Operand = SparseMatrix<float>; | |
| #else | |
| using Operand = SparseMatrix<double>; | |
| #endif | |
| int main() { | |
| Operand a(10, 10), b(10, 10); | |
| SparseMatrix<double, RowMajor> c; | |
| c = (a * b).pruned(); | |
| } |