Source: tests/dense/horzcat.cpp 
 
 
   22 #include <tests/myratest.h>    33   auto B = horzcat( A.left(2), A.right(4) );  
    34   Precision error = frobenius(A-B);
    35   myra::out() << 
"  |A - horzcat(a,a)| = " << error << std::endl;
    36   REQUIRE(error < tolerance);
    39 #ifdef MYRAMATH_ENABLE_CPP11    46   auto B = horzcat( A.add_const().columns({2,3,2}) );
    47   Precision error = frobenius(A-B);
    48   myra::out() << 
"  |A - horzcat(...)| = " << error << std::endl;
    49   REQUIRE(error < tolerance);
    56 ADD_TEST(
"horzcat",
"[dense]")
    58   test1<NumberS>(1.0e-5f);
    59   test1<NumberD>(1.0e-10);
    60   test1<NumberC>(1.0e-5f);  
    61   test1<NumberZ>(1.0e-10);
    64 #ifdef MYRAMATH_ENABLE_CPP11    66 ADD_TEST(
"horzcat_cpp11",
"[dense]")
    68   test2<NumberS>(1.0e-5f);
    69   test2<NumberD>(1.0e-10);
    70   test2<NumberC>(1.0e-5f);  
    71   test2<NumberZ>(1.0e-10);
 Interface class for representing subranges of dense Matrix's. 
Container of values, allows random (i) access. 
Routines to concatenate Matrix's in left/right fashion. 
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
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
Interface class for representing subranges of contiguous int's. 
 
 Results:  [PASS] 
 
 
  |A - horzcat(...)| = 0
  |A - horzcat(...)| = 0
  |A - horzcat(...)| = 0
  |A - horzcat(...)| = 0
 
 Go back to Summary of /test programs.