25 RowVectorType r1 = RowVectorType::Random(
rows), r2 = RowVectorType::Random(
rows);
26 RhsMatrixType m4 = RhsMatrixType::Random(
rows, 10);
28 Scalar s1 = internal::random<Scalar>(), s2 = internal::random<Scalar>(), s3 = internal::random<Scalar>();
33 m2 =
m1.template triangularView<Lower>();
34 m2.template selfadjointView<Lower>().rankUpdate(
v1,
v2);
37 m2 =
m1.template triangularView<Upper>();
38 m2.template selfadjointView<Upper>().rankUpdate(-
v1, s2 *
v2, s3);
40 .
template triangularView<Upper>()
43 m2 =
m1.template triangularView<Upper>();
44 m2.template selfadjointView<Upper>().rankUpdate(-s2 * r1.adjoint(), r2.adjoint() * s3, s1);
46 numext::conj(s1) * (r2.adjoint() * s3) * (-s2 * r1.adjoint()).adjoint())
47 .template triangularView<Upper>()
51 m2 =
m1.template triangularView<Lower>();
53 .template selfadjointView<Lower>()
56 m3.block(1, 1,
rows - 1,
cols - 1) +=
AnnoyingScalar conj(const AnnoyingScalar &x)
Definition: AnnoyingScalar.h:133
Map< RowVectorXf > v2(M2.data(), M2.size())
M1<< 1, 2, 3, 4, 5, 6, 7, 8, 9;Map< RowVectorXf > v1(M1.data(), M1.size())
int rows
Definition: Tutorial_commainit_02.cpp:1
int cols
Definition: Tutorial_commainit_02.cpp:1
void adjoint(const MatrixType &m)
Definition: adjoint.cpp:85
SCALAR Scalar
Definition: bench_gemm.cpp:45
MatrixXf MatrixType
Definition: benchmark-blocking-sizes.cpp:52
#define VERIFY_IS_APPROX(a, b)
Definition: integer_types.cpp:13
int * m
Definition: level2_cplx_impl.h:294
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:83
internal::nested_eval< T, 1 >::type eval(const T &xpr)
Definition: sparse_permutations.cpp:47
Definition: fft_test_shared.h:66