Merge pull request #690 from ToniRV/fix/shonan_averaging_dense_to_sparse
Fix/shonan averaging dense to sparserelease/4.3a0
commit
b6bd656584
|
@ -553,7 +553,7 @@ static bool PowerMinimumEigenValue(
|
|||
return true;
|
||||
}
|
||||
|
||||
const Sparse C = pmEigenValue * Matrix::Identity(A.rows(), A.cols()) - A;
|
||||
const Sparse C = pmEigenValue * Matrix::Identity(A.rows(), A.cols()).sparseView() - A;
|
||||
const boost::optional<Vector> initial = perturb(S.row(0));
|
||||
AcceleratedPowerMethod<Sparse> apmShiftedOperator(C, initial);
|
||||
|
||||
|
|
Loading…
Reference in New Issue