58 typedef typename SparseMatrixType::StorageIndex StorageIndex;
68 OtherSparseMatrixType
res;
73 up =
mat.template triangularView<Upper>();
74 lo =
mat.template triangularView<Lower>();
76 up_sym_d = mat_d.template selfadjointView<Upper>();
77 lo_sym_d = mat_d.template selfadjointView<Lower>();
156 res.template selfadjointView<
Upper>() =
mat.template selfadjointView<
Upper>();
157 res_d = up_sym_d.template triangularView<
Upper>();
160 res.template selfadjointView<
Lower>() =
mat.template selfadjointView<
Upper>();
161 res_d = up_sym_d.template triangularView<
Lower>();
164 res.template selfadjointView<
Upper>() =
mat.template selfadjointView<
Lower>();
165 res_d = lo_sym_d.template triangularView<
Upper>();
168 res.template selfadjointView<
Lower>() =
mat.template selfadjointView<
Lower>();
169 res_d = lo_sym_d.template triangularView<
Lower>();
172 res.template selfadjointView<
Upper>() =
mat.template selfadjointView<
Upper>().twistedBy(
p);
176 res.template selfadjointView<
Upper>() =
mat.template selfadjointView<
Lower>().twistedBy(
p);
180 res.template selfadjointView<
Lower>() =
mat.template selfadjointView<
Lower>().twistedBy(
p);
184 res.template selfadjointView<
Lower>() =
mat.template selfadjointView<
Upper>().twistedBy(
p);
188 res.template selfadjointView<
Upper>() = up.template selfadjointView<
Upper>().twistedBy(
p);
192 res.template selfadjointView<
Upper>() = lo.template selfadjointView<
Lower>().twistedBy(
p);
196 res.template selfadjointView<
Lower>() = lo.template selfadjointView<
Lower>().twistedBy(
p);
200 res.template selfadjointView<
Lower>() = up.template selfadjointView<
Upper>().twistedBy(
p);
Matrix< Scalar, Dynamic, Dynamic > DenseMatrix
Definition: BenchSparseUtil.h:23
Eigen::SparseMatrix< double > mat
Definition: EigenUnitTest.cpp:10
cout<< "Here is the matrix m:"<< endl<< m<< endl;Matrix< ptrdiff_t, 3, 1 > res
Definition: PartialRedux_count.cpp:3
float * p
Definition: Tutorial_Map_using.cpp:9
int rows
Definition: Tutorial_commainit_02.cpp:1
int cols
Definition: Tutorial_commainit_02.cpp:1
SCALAR Scalar
Definition: bench_gemm.cpp:45
#define max(a, b)
Definition: datatypes.h:23
@ Lower
Definition: Constants.h:211
@ Upper
Definition: Constants.h:213
#define VERIFY_IS_APPROX(a, b)
Definition: integer_types.cpp:13
void inverse(const MatrixType &m)
Definition: inverse.cpp:64
EIGEN_DEVICE_FUNC bool isApprox(const Scalar &x, const Scalar &y, const typename NumTraits< Scalar >::Real &precision=NumTraits< Scalar >::dummy_precision())
Definition: MathFunctions.h:1923
void randomPermutationVector(PermutationVectorType &v, Index size)
Definition: random_matrix_helper.h:101
const Mdouble pi
Definition: ExtendedMath.h:23
std::string lower(std::string s)
returns the input string after converting upper-case characters to lower case
Definition: StringHelpers.cc:11
double Zero
Definition: pseudosolid_node_update_elements.cc:35
void selfadjoint(const MatrixType &m)
Definition: selfadjoint.cpp:17
bool is_sorted(const T &mat)
Definition: sparse_permutations.cpp:35
internal::nested_eval< T, 1 >::type eval(const T &xpr)
Definition: sparse_permutations.cpp:47
#define VERIFY_TEMPORARY_COUNT(XPR, N)
Definition: sparse_permutations.cpp:24
#define VERIFY_TRANSPOSITION_COUNT(XPR, N)
Definition: sparse_permutations.cpp:13