16 int rows = internal::random<int>(1,12);
17 int cols = internal::random<int>(1,12);
20 VectorType
x(cols); x.setRandom();
22 VectorType
y(rows); y.setZero();
23 MatrixType
A(rows,cols); A.setRandom();
40 VectorXf
v = VectorXf::Ones(N);
41 MatrixXf
m = MatrixXf::Ones(N,3);
42 m = (v+
v).asDiagonal() *
m;
48 MatrixXf
a = MatrixXf::Random(10,4),
b = MatrixXf::Random(4,10),
c =
a;
55 std::ptrdiff_t
l1 = internal::random<int>(10000,20000);
56 std::ptrdiff_t
l2 = internal::random<int>(100000,200000);
57 std::ptrdiff_t
l3 = internal::random<int>(1000000,2000000);
61 std::ptrdiff_t k1 = internal::random<int>(10,100)*16;
62 std::ptrdiff_t
m1 = internal::random<int>(10,100)*16;
63 std::ptrdiff_t
n1 = internal::random<int>(10,100)*16;
65 internal::computeProductBlockingSizes<float,float,std::ptrdiff_t>(k1,
m1,
n1,1);
70 MatrixXf
mat1(10,32); mat1.setRandom();
71 MatrixXf mat2(32,32); mat2.setRandom();
72 MatrixXf
r1 = mat1.row(2)*mat2.transpose();
75 MatrixXf
r2 = mat1.row(2)*mat2;
80 Eigen::MatrixXd
A(10,10),
B,
C;
83 for(
int k=0; k<79; ++k)
85 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)))
86 * (((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)));
93 typedef Matrix<double, 2, -1, 0, 2, -1> Mat2X;
94 Mat2X
x(2,2); x.setRandom();
95 MatrixXd
y(2,2); y.setRandom();
96 const Mat2X
K1 = x * y.inverse();
97 const Matrix2d
K2 = x * y.inverse();
125 #if defined EIGEN_HAS_OPENMP Matrix< SCALARB, Dynamic, Dynamic, opt_B > B
EIGEN_DECLARE_TEST(product_large)
void setCpuCacheSizes(std::ptrdiff_t l1, std::ptrdiff_t l2, std::ptrdiff_t l3)
#define CALL_SUBTEST_9(FUNC)
#define CALL_SUBTEST_6(FUNC)
#define CALL_SUBTEST_4(FUNC)
#define CALL_SUBTEST_3(FUNC)
#define CALL_SUBTEST_7(FUNC)
MatrixXd mat1(size, size)
Matrix< SCALARA, Dynamic, Dynamic, opt_A > A
#define CALL_SUBTEST_10(FUNC)
static const Cal3Bundler K2(625, 1e-3, 1e-3)
#define VERIFY_IS_APPROX(a, b)
#define CALL_SUBTEST_1(FUNC)
std::ptrdiff_t l2CacheSize()
Array< int, Dynamic, 1 > v
Eigen::Triplet< double > T
#define CALL_SUBTEST_8(FUNC)
static Cal3_S2::shared_ptr K1(new Cal3_S2(fov, w, h))
Matrix< Scalar, Dynamic, Dynamic > C
void omp_set_dynamic(int num_threads)
#define CALL_SUBTEST_5(FUNC)
#define EIGEN_TEST_MAX_SIZE
void product_large_regressions()
#define CALL_SUBTEST_2(FUNC)
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 product(const MatrixType &m)