norm_sqr += s*s;
++nnz;
}
- m.compress ();
+ m.compress (VectorOperation::insert);
deallog << m.frobenius_norm() << ' ' << std::sqrt (norm_sqr)
<< std::endl;
-DEAL::7.02303e+09 7.02303e+09
+DEAL::7.15267e+09 7.15267e+09
DEAL::32 32
-DEAL::6.89422e+09 6.89422e+09
+DEAL::6.84337e+09 6.84337e+09
DEAL::32 32
DEAL::OK
norm_sqr += s*s;
++nnz;
}
- m.compress ();
+ m.compress (VectorOperation::insert);
deallog << m.frobenius_norm() << ' ' << std::sqrt (norm_sqr)
<< std::endl;
-DEAL::7.02303e+09 7.02303e+09
+DEAL::7.15267e+09 7.15267e+09
DEAL::32 32
-DEAL::6.68247e+09 6.68247e+09
+DEAL::6.71272e+09 6.71272e+09
DEAL::32 32
DEAL::OK
norm_sqr += s*s;
++nnz;
}
- m.compress ();
+ m.compress (VectorOperation::insert);
deallog << m.frobenius_norm() << ' ' << std::sqrt (norm_sqr)
<< std::endl;
-DEAL::7.02303e+09 7.02303e+09
+DEAL::7.15267e+09 7.15267e+09
DEAL::32 32
-DEAL::6.89431e+09 7.02885e+09
+DEAL::6.85012e+09 6.96869e+09
DEAL::32 32
DEAL::OK
norm_sqr += s*s;
++nnz;
}
- m.compress ();
+ m.compress (VectorOperation::insert);
deallog << m.frobenius_norm() << ' ' << std::sqrt (norm_sqr)
<< std::endl;
-DEAL::7.02303e+09 7.02303e+09
+DEAL::7.15267e+09 7.15267e+09
DEAL::32 32
-DEAL::6.81766e+09 6.95733e+09
+DEAL::6.82410e+09 6.96580e+09
DEAL::32 32
DEAL::OK
matrix.set(global, global+N, rand());
}
}
- matrix.compress ();
+ matrix.compress (VectorOperation::insert);
// then do a single matrix-vector
// multiplication with subsequent formation
-DEAL::2.04927e+23
+DEAL::2.04928e+23
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams