26 #include <tests/myratest.h> 33 template<
class Number>
void test1()
35 myra::out() << typestring<Number>() << std::endl;
45 myra::out() <<
" |A(2:4,3:4)-B| = " << error << std::endl;
50 template<
class Number>
void test2()
52 myra::out() << typestring<Number>() << std::endl;
62 myra::out() <<
" |a(1:3)-b| = " << error << std::endl;
67 template<
class Number>
void test3()
69 myra::out() << typestring<Number>() << std::endl;
79 myra::out() <<
" |a(:,:)-b| = " << error << std::endl;
85 ADD_TEST(
"dense_io2",
"[dense]")
void write(OutputStream &out) const
Writes to OutputStream. Layout compatible with Vector's InputStream constructor.
Definition: VectorRange.cpp:42
Interface class for representing subranges of dense Matrix's.
void write(OutputStream &out) const
Writes to OutputStream. Layout compatible with LowerMatrix's InputStream constructor.
Definition: LowerMatrixRange.cpp:52
Represents a mutable LowerMatrixRange.
Definition: conjugate.h:28
Interface class for representing subranges of dense Vector's.
Tabulates an IxJ matrix. Allows random access, has column major layout to be compatible with BLAS/LAP...
Definition: bdsqr.h:20
Represents a mutable VectorRange.
Definition: axpy.h:21
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
Wraps a std::vector<char>, presents it as both an InputStream and OutputStream. Useful for hygienic u...
Definition: VectorStream.h:22
Range construct for a lower triangular matrix stored in rectangular packed format.
static Vector< Number > random(int N)
Generates a random Vector of specified size.
Definition: Vector.cpp:276
Specialized container for a lower triangular matrix, O(N^2/2) storage. Used by symmetry exploiting ma...
VectorRange< Number > window(int n0, int n1) const
Returns this(n0:n1)
Definition: VectorRange.cpp:73
Various utility functions/classes related to scalar Number types.
Represents a mutable MatrixRange.
Definition: conjugate.h:26
void write(OutputStream &out) const
Writes to OutputStream. Layout compatible with Matrix's InputStream constructor.
Definition: MatrixRange.cpp:54
A stream that serialize/deserializes to std::vector<char> buffer.
General purpose dense matrix container, O(i*j) storage.
Tabulates a vector of length N, allows random access.
Definition: conjugate.h:21
Container for either a column vector or row vector (depends upon the usage context) ...
Reflects Precision trait for a Number, scalar Number types should specialize it.
Definition: Number.h:33
MatrixRange< Number > bottom(int i) const
Returns the i bottommost rows, this(I-i:I,:)
Definition: MatrixRange.cpp:186
Stores a lower triangular matrix in rectangular packed format.
Definition: conjugate.h:22
static LowerMatrix< Number > random(int N)
Generates a random LowerMatrix of specified size.
Definition: LowerMatrix.cpp:249