52 std::auto_ptr<SparseMatrix>* ppMatrix, std::string& err);
55 std::auto_ptr<SparseMatrix>* ppMatrix);
60 std::auto_ptr<SparseMatrix>* ppMatrix, std::string& err);
65 memset(results, 0,
sizeof(T) * m.
height);
66 for(
int row = 0; row < m.
height; ++row) {
69 int end = (row + 1 < m.
height) ? m.
csr[row + 1] : m.
nz;
70 for(
int i = begin; i < end; ++i)
73 results[row] = product;
79 for(
int i = 0; i < count; ++i) {
82 double diff = fabs(x - y);
86 if(1.01 * x < y || 0.99 * x > y) {
87 printf(
"BAD OUTPUT AT COMPONENT %d: %8.5e vs %8.5e\n", i,
93 if(1.01 * x > y || 0.99 * x < y) {
94 printf(
"BAD OUTPUT AT COMPONENT %d: %8.5e vs %8.5e\n", i,
116 std::auto_ptr<SparseMatrix>* ppC);
122 int* colMin,
int* colMax);