diff options
author | Gael Guennebaud <g.gael@free.fr> | 2018-10-11 10:27:23 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2018-10-11 10:27:23 +0200 |
commit | 8214cf1896020a6361489dc8e8a331c0b3ecd6e0 (patch) | |
tree | a60805f4de869467d69b67c9c5cc5da1da0cdf44 /unsupported/test/sparse_extra.cpp | |
parent | 43633fbaba9f8be784e32296f2d5349e439eeaed (diff) |
Make sparse_basic includable from sparse_extra, but disable it since sparse_basic(DynamicSparseMatrix) does not compile at all anyways
Diffstat (limited to 'unsupported/test/sparse_extra.cpp')
-rw-r--r-- | unsupported/test/sparse_extra.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/unsupported/test/sparse_extra.cpp b/unsupported/test/sparse_extra.cpp index 51ba83b13..b5d656fdc 100644 --- a/unsupported/test/sparse_extra.cpp +++ b/unsupported/test/sparse_extra.cpp @@ -9,9 +9,25 @@ // import basic and product tests for deprecated DynamicSparseMatrix +#if 0 // sparse_basic(DynamicSparseMatrix) does not compile at all -> disabled +static long g_realloc_count = 0; +#define EIGEN_SPARSE_COMPRESSED_STORAGE_REALLOCATE_PLUGIN g_realloc_count++; + +static long g_dense_op_sparse_count = 0; +#define EIGEN_SPARSE_ASSIGNMENT_FROM_DENSE_OP_SPARSE_PLUGIN g_dense_op_sparse_count++; +#define EIGEN_SPARSE_ASSIGNMENT_FROM_SPARSE_ADD_DENSE_PLUGIN g_dense_op_sparse_count+=10; +#define EIGEN_SPARSE_ASSIGNMENT_FROM_SPARSE_SUB_DENSE_PLUGIN g_dense_op_sparse_count+=20; + +#define EIGEN_SPARSE_TEST_INCLUDED_FROM_SPARSE_EXTRA 1 +#endif + #define EIGEN_NO_DEPRECATED_WARNING #include "sparse_product.cpp" + +#if 0 // sparse_basic(DynamicSparseMatrix) does not compile at all -> disabled #include "sparse_basic.cpp" +#endif + #include <Eigen/SparseExtra> template<typename SetterType,typename DenseType, typename Scalar, int Options> |