DGtal
1.5.beta
|
Aim: This concept gathers all models that are able to compute the (sign of the) determinant of a 2x2 matrix with integral entries. More...
#include <DGtal/geometry/tools/determinant/C2x2DetComputer.h>
Public Types | |
typedef T::ArgumentInteger | ArgumentType |
typedef T::ResultInteger | ResultType |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CEuclideanRing< ArgumentType >)) | |
BOOST_CONCEPT_ASSERT ((concepts::CSignedNumber< ResultType >)) | |
BOOST_CONCEPT_USAGE (C2x2DetComputer) | |
Private Attributes | |
T | myX |
ArgumentType | myA |
ArgumentType | myB |
ArgumentType | myC |
ArgumentType | myD |
ResultType | myR |
Aim: This concept gathers all models that are able to compute the (sign of the) determinant of a 2x2 matrix with integral entries.
Description of concept 'C2x2DetComputer'
The returned value, which is a model of CSignedNumber, is guaranteed to be:
boost::DefaultConstructible<T>, boost::CopyConstructible<T>, boost::Assignable<T>
Name | Expression | Type requirements | Return type | Precondition | Semantics | Post condition | Complexity |
---|---|---|---|---|---|---|---|
full operator() | r = x(a, b, c, d) | ResultInteger | (sign of) ad - bc | model dependent | |||
initialization | x.init(a,b) | void | memorizes a and b | constant | |||
partial operator() | r = x(c, d) | ResultInteger | (sign of) ad - bc | model dependent |
In addition to the full operator(), this concept allows another way to compute the quantity ad - bc in two steps:
Simple2x2DetComputer, SimpleIncremental2x2DetComputer, AvnaimEtAl2x2DetSignComputer, Filtered2x2DetComputer
T | the type that should be a model of C2x2DetComputer. |
Definition at line 107 of file C2x2DetComputer.h.
typedef T::ArgumentInteger DGtal::C2x2DetComputer< T >::ArgumentType |
Definition at line 111 of file C2x2DetComputer.h.
typedef T::ResultInteger DGtal::C2x2DetComputer< T >::ResultType |
Definition at line 114 of file C2x2DetComputer.h.
DGtal::C2x2DetComputer< T >::BOOST_CONCEPT_ASSERT | ( | (concepts::CEuclideanRing< ArgumentType >) | ) |
DGtal::C2x2DetComputer< T >::BOOST_CONCEPT_ASSERT | ( | (concepts::CSignedNumber< ResultType >) | ) |
|
inline |
Definition at line 117 of file C2x2DetComputer.h.
References DGtal::C2x2DetComputer< T >::myA, DGtal::C2x2DetComputer< T >::myB, DGtal::C2x2DetComputer< T >::myC, DGtal::C2x2DetComputer< T >::myD, DGtal::C2x2DetComputer< T >::myR, DGtal::C2x2DetComputer< T >::myX, and DGtal::concepts::ConceptUtils::sameType().
|
private |
Definition at line 126 of file C2x2DetComputer.h.
Referenced by DGtal::C2x2DetComputer< T >::BOOST_CONCEPT_USAGE().
|
private |
Definition at line 126 of file C2x2DetComputer.h.
Referenced by DGtal::C2x2DetComputer< T >::BOOST_CONCEPT_USAGE().
|
private |
Definition at line 126 of file C2x2DetComputer.h.
Referenced by DGtal::C2x2DetComputer< T >::BOOST_CONCEPT_USAGE().
|
private |
Definition at line 126 of file C2x2DetComputer.h.
Referenced by DGtal::C2x2DetComputer< T >::BOOST_CONCEPT_USAGE().
|
private |
Definition at line 127 of file C2x2DetComputer.h.
Referenced by DGtal::C2x2DetComputer< T >::BOOST_CONCEPT_USAGE().
|
private |
Definition at line 125 of file C2x2DetComputer.h.
Referenced by DGtal::C2x2DetComputer< T >::BOOST_CONCEPT_USAGE().