[Numerics] Fix invalid dereference in SquareMatrix::factor
The work array hasn't always been allocated, so taking its address isn't necessarily valid. Also, dlange doesn't use the work array in the '1' norm case anyway.
This commit is contained in:
parent
4e72cf0334
commit
8933203a20
1 changed files with 1 additions and 1 deletions
|
|
@ -134,7 +134,7 @@ int SquareMatrix::factor()
|
|||
if (useQR_) {
|
||||
return factorQR();
|
||||
}
|
||||
a1norm_ = ct_dlange('1', m_nrows, m_nrows, &(*(begin())), m_nrows, DATA_PTR(work));
|
||||
a1norm_ = ct_dlange('1', m_nrows, m_nrows, &(*(begin())), m_nrows, 0);
|
||||
integer n = static_cast<int>(nRows());
|
||||
int info=0;
|
||||
m_factored = 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue