mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
- add a low level mechanism to provide preallocated memory to gemm
- ensure static allocation for the product of "large" fixed size matrix
This commit is contained in:
@@ -100,9 +100,7 @@ void ctms_decompositions()
|
||||
|
||||
const Matrix A(Matrix::Random(size, size));
|
||||
const ComplexMatrix complexA(ComplexMatrix::Random(size, size));
|
||||
// const Matrix saA = A.adjoint() * A; // NOTE: This product allocates on the stack. The two following lines are a kludgy workaround
|
||||
Matrix saA(Matrix::Constant(size, size, 1.0));
|
||||
saA.diagonal().setConstant(2.0);
|
||||
const Matrix saA = A.adjoint() * A;
|
||||
|
||||
// Cholesky module
|
||||
Eigen::LLT<Matrix> LLT; LLT.compute(A);
|
||||
|
||||
Reference in New Issue
Block a user