MCPcopy Create free account
hub / github.com/Derious/cuMPC / test_zerosized

Function test_zerosized

dependence/eigen-3.4.0/test/nomalloc.cpp:158–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158void test_zerosized() {
159 // default constructors:
160 Eigen::MatrixXd A;
161 Eigen::VectorXd v;
162 // explicit zero-sized:
163 Eigen::ArrayXXd A0(0,0);
164 Eigen::ArrayXd v0(0);
165
166 // assigning empty objects to each other:
167 A=A0;
168 v=v0;
169}
170
171template<typename MatrixType> void test_reference(const MatrixType& m) {
172 typedef typename MatrixType::Scalar Scalar;

Callers 1

EIGEN_DECLARE_TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected