8#include "../Utils_Fill.h" 
   17  cout << 
"=== Vector: sparse class example  ===================\n";
 
   29  vecC = vecA * 2. + vecB * 2.;
 
   32  if ( vecC.
one_norm() - ( 2 * oneA + 2 * oneB ) > tol )
 
   34    cout << 
"\033[1;31;48m  * FAILED \033[0m\n";
 
   37  cout << 
"\033[1;32;48m  * PASSED \033[0m\n";
 
A templated SparseVector class – a sparse, variable size, vector object.
An SparseVector class – a sparse vector object.
double one_norm() const
l1-norm.
A collection of OO numerical routines aimed at simple (typical) applied problems in continuum mechani...
void fill_random(CppNoddy::SparseVector< double > &V, const unsigned &num_of_elts)