lucasmaystre/svdlibc — pull request #1 by bharathkrishnan (2012-09-07 16:17:20+00:00)
Title: Small change to make svdlibc work with larger matrices on highmem machines

Make sure that we can allocate DMat or SMat if their size is larger than max integer provided we have enough memory.

Without this change, memory allocation fails for Ut of size > 16G even if we have more than 16G of RAM.

Alternate fix would be to cast rows*cols to long inside the calloc call.