mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix perm*sparse return type and nesting, and add several sanity checks for perm*sparse
This commit is contained in:
@@ -1045,6 +1045,9 @@ EIGEN_DONT_INLINE SparseMatrix<Scalar,_Options,_Index>& SparseMatrix<Scalar,_Opt
|
||||
const bool needToTranspose = (Flags & RowMajorBit) != (internal::evaluator<OtherDerived>::Flags & RowMajorBit);
|
||||
if (needToTranspose)
|
||||
{
|
||||
#ifdef EIGEN_SPARSE_TRANSPOSED_COPY_PLUGIN
|
||||
EIGEN_SPARSE_TRANSPOSED_COPY_PLUGIN
|
||||
#endif
|
||||
// two passes algorithm:
|
||||
// 1 - compute the number of coeffs per dest inner vector
|
||||
// 2 - do the actual copy/eval
|
||||
|
||||
Reference in New Issue
Block a user