Static Public Member Functions | List of all members
lar::util::details::DeterminantHelper< T, N, R1, R2, C1, C2 > Struct Template Reference

Determinant of a 2x2 submatrix. More...

#include <FastMatrixMathHelper.h>

Inheritance diagram for lar::util::details::DeterminantHelper< T, N, R1, R2, C1, C2 >:
lar::util::details::DeterminantHelperBase< N >

Static Public Member Functions

static constexpr T sqr (T v)
 
static T compute (T const *data)
 
- Static Public Member Functions inherited from lar::util::details::DeterminantHelperBase< N >
static constexpr size_t index (unsigned int row, unsigned int col)
 

Detailed Description

template<typename T, unsigned int N, unsigned int R1, unsigned int R2, unsigned int C1, unsigned int C2>
struct lar::util::details::DeterminantHelper< T, N, R1, R2, C1, C2 >

Determinant of a 2x2 submatrix.

Definition at line 164 of file FastMatrixMathHelper.h.

Member Function Documentation

template<typename T , unsigned int N, unsigned int R1, unsigned int R2, unsigned int C1, unsigned int C2>
static T lar::util::details::DeterminantHelper< T, N, R1, R2, C1, C2 >::compute ( T const *  data)
inlinestatic

Definition at line 175 of file FastMatrixMathHelper.h.

176  {
177  return data[index(R1, C1)] * data[index(R2, C2)]
178  - data[index(R1, C2)] * data[index(R2, C1)];
179  /* // also
180  data[index(R1, C1)] * UpHelper<R2, C2>::compute(data)
181  - data[index(R1, C2)] * UpHelper<R2, C1>::compute(data)
182  */
183  }
static constexpr size_t index(unsigned int row, unsigned int col)
class C2 in group 1
Definition: group.cpp:10
class C1 in group 1
Definition: group.cpp:7
template<typename T , unsigned int N, unsigned int R1, unsigned int R2, unsigned int C1, unsigned int C2>
static constexpr T lar::util::details::DeterminantHelper< T, N, R1, R2, C1, C2 >::sqr ( v)
inlinestatic

Definition at line 173 of file FastMatrixMathHelper.h.

173 { return v*v; }

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