fine tuning in dot() and sum(), and prepare for the sparse versions...

This commit is contained in:
Gael Guennebaud
2009-01-07 16:58:17 +00:00
parent 6b9d647fc2
commit 336f0a8486
3 changed files with 19 additions and 23 deletions

View File

@@ -73,7 +73,7 @@ inline T* ei_aligned_malloc(size_t size)
// and this type has a custom operator new, then we want to honor this operator new!
// so when we use C functions to allocate memory, we must be careful to call manually the constructor using
// the special placement-new syntax.
return new(void_result) T[size];
return ::new(void_result) T[size];
}
else
return new T[size]; // here we really want a new, not a malloc. Justification: if the user uses Eigen on