29 #include <tests/myratest.h>    32 ADD_TEST(
"equilibrate",
"[sparse]")
    35   auto A = laplacian2<NumberD>(5,5);
    37   dimm_inplace(
'L',
'N',D,A);
    38   dimm_inplace(
'R',
'N',D,A);
    41   auto E = equilibrate(B);
    43   double error = frobenius(A-E*B*E)/frobenius(A);
    44   myra::out() << 
"|A-E*B*E| = " << error << std::endl;
    45   REQUIRE(error < 1.0e-12);
 Expression< 1, NumberS > pow(const Expression< 1, NumberS > &A, const Expression< 1, NumberS > &B)
Returns A^B, an Expression base raised to an Expression power. 
Definition: functions_power.cpp:53
Generators for basic Expression's (constant, random, linspace, etc). 
An interface used to fill containers from Expression's (see Matrix::evaluate(), for example)...
General purpose compressed-sparse-column (CSC) container. 
Arithmetic operators (+,-,*,/) for Expression's. 
Routines for multiplying by a DiagonalMatrix. 
Rescales rows and columns of a symmetric SparseMatrix A, prior to direct factorization. 
Function overloads (sin, exp, etc) for Expression's. 
Returns frobenius norm of a SparseMatrix. 
std::pair< int, int > size() const
Size inspector. 
Definition: Matrix.cpp:116
Simplistic random number functions. 
Container for a diagonal matrix, O(n) storage. Used by SVD, row/column scaling, etc. 
static DiagonalMatrix< Number > evaluate(const Expression< 1, Number > &e)
Generates a DiagonalMatrix by evaluating an arity-1 Expression of Number. 
Definition: DiagonalMatrix.cpp:258
Helper routines for reordering/filling 2D structured grids. Used by many unit tests.