mapstaticmethods.cpp File Reference
#include "main.h"

Classes

struct  mapstaticmethods_impl< PlainObjectType, IsDynamicSize, IsVector >
 
struct  mapstaticmethods_impl< PlainObjectType, false, IsVector >
 
struct  mapstaticmethods_impl< PlainObjectType, true, false >
 
struct  mapstaticmethods_impl< PlainObjectType, true, true >
 

Functions

template<typename PlainObjectType >
void mapstaticmethods (const PlainObjectType &m, float *ptr, const float *const_ptr)
 
 EIGEN_DECLARE_TEST (mapstaticmethods)
 

Function Documentation

◆ EIGEN_DECLARE_TEST()

EIGEN_DECLARE_TEST ( mapstaticmethods  )
134  {
135  float* ptr = internal::aligned_new<float>(1000);
136  for (int i = 0; i < 1000; i++) ptr[i] = float(i);
137 
138  const float* const_ptr = ptr;
139 
141  CALL_SUBTEST_1((mapstaticmethods(Vector2f(), ptr, const_ptr)));
142  CALL_SUBTEST_2((mapstaticmethods(Vector3f(), ptr, const_ptr)));
143  CALL_SUBTEST_2((mapstaticmethods(Matrix2f(), ptr, const_ptr)));
144  CALL_SUBTEST_3((mapstaticmethods(Matrix4f(), ptr, const_ptr)));
145  CALL_SUBTEST_3((mapstaticmethods(Array4f(), ptr, const_ptr)));
146  CALL_SUBTEST_4((mapstaticmethods(Array3f(), ptr, const_ptr)));
147  CALL_SUBTEST_4((mapstaticmethods(Array33f(), ptr, const_ptr)));
148  CALL_SUBTEST_5((mapstaticmethods(Array44f(), ptr, const_ptr)));
149  CALL_SUBTEST_5((mapstaticmethods(VectorXf(1), ptr, const_ptr)));
150  CALL_SUBTEST_5((mapstaticmethods(VectorXf(8), ptr, const_ptr)));
151  CALL_SUBTEST_6((mapstaticmethods(MatrixXf(1, 1), ptr, const_ptr)));
152  CALL_SUBTEST_6((mapstaticmethods(MatrixXf(5, 7), ptr, const_ptr)));
153  CALL_SUBTEST_7((mapstaticmethods(ArrayXf(1), ptr, const_ptr)));
154  CALL_SUBTEST_7((mapstaticmethods(ArrayXf(5), ptr, const_ptr)));
155  CALL_SUBTEST_8((mapstaticmethods(ArrayXXf(1, 1), ptr, const_ptr)));
156  CALL_SUBTEST_8((mapstaticmethods(ArrayXXf(8, 6), ptr, const_ptr)));
157 
158  internal::aligned_delete(ptr, 1000);
159 }
int i
Definition: BiCGSTAB_step_by_step.cpp:9
The matrix class, also used for vectors and row-vectors.
Definition: Eigen/Eigen/src/Core/Matrix.h:186
void mapstaticmethods(const PlainObjectType &m, float *ptr, const float *const_ptr)
Definition: mapstaticmethods.cpp:129
EIGEN_DEVICE_FUNC void aligned_delete(T *ptr, std::size_t size)
Definition: Memory.h:430
#define CALL_SUBTEST_6(FUNC)
Definition: split_test_helper.h:34
#define CALL_SUBTEST_3(FUNC)
Definition: split_test_helper.h:16
#define CALL_SUBTEST_1(FUNC)
Definition: split_test_helper.h:4
#define CALL_SUBTEST_8(FUNC)
Definition: split_test_helper.h:46
#define CALL_SUBTEST_5(FUNC)
Definition: split_test_helper.h:28
#define CALL_SUBTEST_2(FUNC)
Definition: split_test_helper.h:10
#define CALL_SUBTEST_7(FUNC)
Definition: split_test_helper.h:40
#define CALL_SUBTEST_4(FUNC)
Definition: split_test_helper.h:22

References Eigen::internal::aligned_delete(), CALL_SUBTEST_1, CALL_SUBTEST_2, CALL_SUBTEST_3, CALL_SUBTEST_4, CALL_SUBTEST_5, CALL_SUBTEST_6, CALL_SUBTEST_7, CALL_SUBTEST_8, i, and mapstaticmethods().

◆ mapstaticmethods()

template<typename PlainObjectType >
void mapstaticmethods ( const PlainObjectType &  m,
float *  ptr,
const float *  const_ptr 
)
129  {
131  VERIFY(true); // just to avoid 'unused function' warning
132 }
int * m
Definition: level2_cplx_impl.h:294
#define VERIFY(a)
Definition: main.h:362
void run(const string &dir_name, LinearSolver *linear_solver_pt, const unsigned nel_1d, bool mess_up_order)
Definition: two_d_poisson_compare_solvers.cc:317

References m, run(), and VERIFY.

Referenced by EIGEN_DECLARE_TEST().