27 #include <tests/myratest.h>    36   myra::out() << typestring<Number>() << std::endl;  
    43   Number alpha = random<Number>();
    48     trmm_inplace(
'L',
'U',
'N',A,X,diag,alpha);
    49     Precision error = frobenius(B-X);
    50     myra::out() << 
"  |U*X-B| = " << error << std::endl;
    51     REQUIRE(error < tolerance);
    57     trmm_inplace(
'L',
'U',
'T',A,X,diag,alpha);
    58     Precision error = frobenius(B-X);
    59     myra::out() << 
"  |transpose(U)*X-B| = " << error << std::endl;
    60     REQUIRE(error < tolerance);
    66     trmm_inplace(
'L',
'U',
'H',A,X,diag,alpha);
    67     Precision error = frobenius(B-X);
    68     myra::out() << 
"  |hermitian(U)*X-B| = " << error << std::endl;
    69     REQUIRE(error < tolerance);
    75     trmm_inplace(
'L',
'U',
'C',A,X,diag,alpha);
    76     Precision error = frobenius(B-X);
    77     myra::out() << 
"  |conjugate(U)*X-B| = " << error << std::endl;
    78     REQUIRE(error < tolerance);
    84     trmm_inplace(
'R',
'U',
'N',A,X,diag,alpha);
    85     Precision error = frobenius(B-X);
    86     myra::out() << 
"  |X*U-B| = " << error << std::endl;
    87     REQUIRE(error < tolerance);
    93     trmm_inplace(
'R',
'U',
'T',A,X,diag,alpha);
    94     Precision error = frobenius(B-X);
    95     myra::out() << 
"  |X*tranpose(U)-B| = " << error << std::endl;
    96     REQUIRE(error < tolerance);
   102     trmm_inplace(
'R',
'U',
'H',A,X,diag,alpha);
   103     Precision error = frobenius(B-X);
   104     myra::out() << 
"  |X*hermitian(U)-B| = " << error << std::endl;
   105     REQUIRE(error < tolerance);
   111     trmm_inplace(
'R',
'U',
'C',A,X,diag,alpha);
   112     Precision error = frobenius(B-X);
   113     myra::out() << 
"  |X*conjugate(U)-B| = " << error << std::endl;
   114     REQUIRE(error < tolerance);
   120 ADD_TEST(
"strmmU",
"[dense][lapack]")
   121   { test<NumberS>(1.0e-4f); }
   123 ADD_TEST(
"dtrmmU",
"[dense][lapack]")
   124   { test<NumberD>(1.0e-10); }
   126 ADD_TEST(
"ctrmmU",
"[dense][lapack]")
   127   { test<NumberC>(1.0e-4f); }
   129 ADD_TEST(
"ztrmmU",
"[dense][lapack]")
   130   { test<NumberZ>(1.0e-10); }
 Returns a conjugated copy of a Matrix or Vector. Or, conjugate one inplace. 
Interface class for representing subranges of dense Matrix's. 
Tabulates an IxJ matrix. Allows random access, has column major layout to be compatible with BLAS/LAP...
Definition: bdsqr.h:20
Routines for computing Frobenius norms of various algebraic containers. 
static Matrix< Number > random(int I, int J)
Generates a random Matrix of specified size. 
Definition: Matrix.cpp:353
Routines for multiplying by a triangular Matrix or LowerMatrix. 
Returns a transposed copy of a Matrix. The inplace version only works on a square operand...
Returns the upper triangle of a dense Matrix. 
Various utility functions/classes related to scalar Number types. 
General purpose dense matrix container, O(i*j) storage. 
Reflects Precision trait for a Number, scalar Number types should specialize it. 
Definition: Number.h:33
Returns a hermitian copy of a Matrix. The inplace version only works on a square operand. 
Simplistic random number functions. 
Variety of routines all for dense Matrix*Matrix multiplies. Delegates to the BLAS. 
std::complex<float>
  |U*X-B| = 1.0123e-05
  |transpose(U)*X-B| = 8.99374e-06
  |hermitian(U)*X-B| = 8.93056e-06
  |conjugate(U)*X-B| = 1.05462e-05
  |X*U-B| = 9.87578e-06
  |X*tranpose(U)-B| = 9.4355e-06
  |X*hermitian(U)-B| = 9.79563e-06
  |X*conjugate(U)-B| = 9.64413e-06