fix infinite loop

This commit is contained in:
Gael Guennebaud 2010-06-24 22:18:09 +02:00
parent 566867428c
commit f3b875e434

View File

@ -75,6 +75,7 @@ struct ei_selfadjoint_product<Scalar, Index, MatStorageOrder, ColMajor, AAT, UpL
Index nc = size; // cache block size along the N direction
computeProductBlockingSizes<Scalar,Scalar>(kc, mc, nc);
// !!! mc must be a multiple of nr:
if(mc>Blocking::nr)
mc = (mc/Blocking::nr)*Blocking::nr;
Scalar* blockA = ei_aligned_stack_new(Scalar, kc*mc);