25 #include <tests/myratest.h> 36 std::pair<Number,Number> cs = rotate1(x(0),x(1));
44 Precision G_error = frobenius(gemm(G,
'H',G)-I);
45 myra::out() <<
"|G'G-I| = " << G_error << std::endl;
46 REQUIRE(G_error < tolerance);
48 Precision y_error = scalar_norm1(y(1));
49 myra::out() <<
"|(G*x)(1)| = " << y_error << std::endl;
50 REQUIRE(y_error < tolerance);
55 ADD_TEST(
"srotate1",
"[dense][lapack]")
56 { test<NumberS>(1.0e-5f); }
58 ADD_TEST(
"drotate1",
"[dense][lapack]")
59 { test<NumberD>(1.0e-10); }
61 ADD_TEST(
"crotate1",
"[dense][lapack]")
62 { test<NumberC>(1.0e-5f); }
64 ADD_TEST(
"zrotate1",
"[dense][lapack]")
65 { test<NumberZ>(1.0e-10); }
Interface class for representing subranges of dense Matrix's.
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
Routines for computing Frobenius norms of various algebraic containers.
Variety of routines all for dense Matrix*Vector multiplies. All just delegate to gemm() ...
static Vector< Number > random(int N)
Generates a random Vector of specified size.
Definition: Vector.cpp:276
Various utility functions/classes related to scalar Number types.
static Matrix< Number > identity(int IJ)
Generates an identity Matrix of specified size.
Definition: Matrix.cpp:349
General purpose dense matrix container, O(i*j) storage.
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
Variety of routines all for dense Matrix*Matrix multiplies. Delegates to the BLAS.
Computes a plane rotation, either single sided (rotate1) or double sided (rotate2).