- 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:
Gael Guennebaud
2010-06-24 21:44:24 +02:00
parent e039edcb42
commit 566867428c
3 changed files with 186 additions and 51 deletions

View File

@@ -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);