31#if defined(SimpleIncremental2x2DetComputer_RECURSES)
32#error Recursive header files inclusion detected in SimpleIncremental2x2DetComputer.h
35#define SimpleIncremental2x2DetComputer_RECURSES
37#if !defined SimpleIncremental2x2DetComputer_h
39#define SimpleIncremental2x2DetComputer_h
44#include "DGtal/base/Common.h"
46#include "DGtal/kernel/NumberTraits.h"
47#include "DGtal/kernel/CEuclideanRing.h"
92 template <
typename TArgumentInteger,
typename TResultInteger = TArgumentInteger>
279 template <
typename TI,
typename TO>
288#include "DGtal/geometry/tools/determinant/SimpleIncremental2x2DetComputer.ih"
295#undef SimpleIncremental2x2DetComputer_RECURSES
Aim: Small class useful to compute, in an incremental way, the determinant of a 2x2 matrix from its f...
TArgumentInteger ArgumentInteger
BOOST_CONCEPT_ASSERT((concepts::CEuclideanRing< ArgumentInteger >))
SimpleIncremental2x2DetComputer()
SimpleIncremental2x2DetComputer & operator=(const SimpleIncremental2x2DetComputer &other)
void partialComputation() const
ResultInteger operator()(const ArgumentInteger &aX, const ArgumentInteger &aY) const
~SimpleIncremental2x2DetComputer()
ResultInteger result_type
ResultInteger operator()(const ArgumentInteger &aA, const ArgumentInteger &aB, const ArgumentInteger &aX, const ArgumentInteger &aY)
void selfDisplay(std::ostream &out) const
ArgumentInteger argument_type
const ResultInteger myZero
void init(const ArgumentInteger &aA, const ArgumentInteger &aB)
TResultInteger ResultInteger
SimpleIncremental2x2DetComputer(const SimpleIncremental2x2DetComputer &other)
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
Aim: Defines the mathematical concept equivalent to a unitary commutative ring with a division operat...