We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4459c45 commit 1cf7a40Copy full SHA for 1cf7a40
1 file changed
src/numerics/eigen_sparse_matrix.C
@@ -143,6 +143,8 @@ void EigenSparseMatrix<T>::get_diagonal (NumericVector<T> & dest_in) const
143
EigenSparseVector<T> & dest = cast_ref<EigenSparseVector<T> &>(dest_in);
144
145
dest._vec = _mat.diagonal();
146
+
147
+ dest.close();
148
}
149
150
@@ -153,6 +155,9 @@ void EigenSparseMatrix<T>::get_transpose (SparseMatrix<T> & dest_in) const
153
155
EigenSparseMatrix<T> & dest = cast_ref<EigenSparseMatrix<T> &>(dest_in);
154
156
157
dest._mat = _mat.transpose();
158
159
+ dest._is_initialized = true;
160
+ dest._closed = true;
161
162
163
0 commit comments