TestMethodDispatching< Scalar, 1 > Struct Template Reference

Static Public Member Functions

static void run ()
 

Member Function Documentation

◆ run()

template<typename Scalar >
static void TestMethodDispatching< Scalar, 1 >::run ( )
inlinestatic
26  {
27  {
30  VERIFY(m.rows() == 3);
31  VERIFY(m.cols() == 4);
32  VERIFY(a.rows() == 3);
33  VERIFY(a.cols() == 4);
34  }
35  {
36  Matrix<Scalar, 1, 2> m{3, 4};
37  Array<Scalar, 1, 2> a{3, 4};
38  VERIFY(m(0) == 3);
39  VERIFY(m(1) == 4);
40  VERIFY(a(0) == 3);
41  VERIFY(a(1) == 4);
42  }
43  {
44  Matrix<Scalar, 2, 1> m{3, 4};
45  Array<Scalar, 2, 1> a{3, 4};
46  VERIFY(m(0) == 3);
47  VERIFY(m(1) == 4);
48  VERIFY(a(0) == 3);
49  VERIFY(a(1) == 4);
50  }
51  }
General-purpose arrays with easy API for coefficient-wise operations.
Definition: Array.h:48
const Scalar * a
Definition: level2_cplx_impl.h:32
int * m
Definition: level2_cplx_impl.h:294
#define VERIFY(a)
Definition: main.h:362

References a, m, and VERIFY.


The documentation for this struct was generated from the following file: