31 #if defined(Simple2x2DetComputer_RECURSES)
32 #error Recursive header files inclusion detected in Simple2x2DetComputer.h
35 #define Simple2x2DetComputer_RECURSES
37 #if !defined Simple2x2DetComputer_h
39 #define Simple2x2DetComputer_h
44 #include "DGtal/base/Common.h"
46 #include "DGtal/kernel/NumberTraits.h"
47 #include "DGtal/kernel/CEuclideanRing.h"
91 template <
typename TArgumentInteger,
typename TResultInteger = TArgumentInteger>
233 template <
typename TI,
typename TO>
242 #include "DGtal/geometry/tools/determinant/Simple2x2DetComputer.ih"
249 #undef Simple2x2DetComputer_RECURSES
Aim: Small class useful to compute the determinant of a 2x2 matrix from its four coefficients,...
ResultInteger result_type
Simple2x2DetComputer(const Simple2x2DetComputer &other)
ResultInteger operator()(const ArgumentInteger &aA, const ArgumentInteger &aB, const ArgumentInteger &aX, const ArgumentInteger &aY)
ResultInteger operator()(const ArgumentInteger &aX, const ArgumentInteger &aY) const
ArgumentInteger argument_type
Simple2x2DetComputer & operator=(const Simple2x2DetComputer &other)
void selfDisplay(std::ostream &out) const
TArgumentInteger ArgumentInteger
BOOST_CONCEPT_ASSERT((concepts::CEuclideanRing< ArgumentInteger >))
TResultInteger ResultInteger
void init(const ArgumentInteger &aA, const ArgumentInteger &aB)
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ATu0v1< TKSpace, TLinearAlgebra > &object)
Aim: Defines the mathematical concept equivalent to a unitary commutative ring with a division operat...