15 int rows = internal::random<int>(1,12);
16 int cols = internal::random<int>(1,12);
19 VectorType
x(cols); x.setRandom();
21 VectorType
y(rows); y.setZero();
22 MatrixType
A(rows,cols); A.setRandom();
42 CALL_SUBTEST_1( test_aliasing<float>() );
45 #if defined EIGEN_TEST_PART_6 49 VectorXf
v = VectorXf::Ones(N);
50 MatrixXf
m = MatrixXf::Ones(N,3);
51 m = (v+
v).asDiagonal() *
m;
57 MatrixXf
a = MatrixXf::Random(10,4),
b = MatrixXf::Random(4,10),
c =
a;
64 std::ptrdiff_t
l1 = internal::random<int>(10000,20000);
65 std::ptrdiff_t
l2 = internal::random<int>(100000,200000);
66 std::ptrdiff_t
l3 = internal::random<int>(1000000,2000000);
70 std::ptrdiff_t k1 = internal::random<int>(10,100)*16;
71 std::ptrdiff_t
m1 = internal::random<int>(10,100)*16;
72 std::ptrdiff_t
n1 = internal::random<int>(10,100)*16;
74 internal::computeProductBlockingSizes<float,float,std::ptrdiff_t>(k1,
m1,
n1,1);
79 MatrixXf
mat1(10,32); mat1.setRandom();
80 MatrixXf mat2(32,32); mat2.setRandom();
81 MatrixXf
r1 = mat1.row(2)*mat2.transpose();
84 MatrixXf
r2 = mat1.row(2)*mat2;
89 Eigen::MatrixXd
A(10,10),
B,
C;
92 for(
int k=0; k<79; ++k)
94 B.noalias() = (((
A*
A)*(
A*
A))*((A*A)*(A*
A))*((A*
A)*(A*A))*((A*A)*(A*
A))*((A*
A)*(A*A)) * ((A*A)*(A*
A))*((A*
A)*(A*A))*((A*A)*(A*
A))*((A*
A)*(A*A))*((A*A)*(A*
A)))
95 * (((A*A)*(A*
A))*((A*
A)*(A*A))*((A*A)*(A*
A))*((A*
A)*(A*A))*((A*A)*(A*
A)) * ((A*
A)*(A*A))*((A*A)*(A*
A))*((A*
A)*(A*A))*((A*A)*(A*
A))*((A*
A)*(A*A)));
101 #if defined EIGEN_HAS_OPENMP
void setCpuCacheSizes(std::ptrdiff_t l1, std::ptrdiff_t l2, std::ptrdiff_t l3)
MatrixXd mat1(size, size)
Matrix< SCALARA, Dynamic, Dynamic > A
Matrix< SCALARB, Dynamic, Dynamic > B
#define VERIFY_IS_APPROX(a, b)
std::ptrdiff_t l2CacheSize()
Eigen::Triplet< double > T
static const Symbol l3('l', 3)
Matrix< Scalar, Dynamic, Dynamic > C
void omp_set_dynamic(int num_threads)
#define EIGEN_TEST_MAX_SIZE
internal::nested_eval< T, 1 >::type eval(const T &xpr)
The matrix class, also used for vectors and row-vectors.
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
std::ptrdiff_t l1CacheSize()
void test_product_large()
void product(const MatrixType &m)