CGAL 5.1 - Algebraic Foundations
|
#include <Concepts/AlgebraicStructureTraits--IsSquare.h>
AdaptableBinaryFunction
that computes whether the first argument is a square. If the first argument is a square the second argument, which is taken by reference, contains the square root. Otherwise, the content of the second argument is undefined.
A ring element \( x\) is said to be a square iff there exists a ring element \( y\) such that \( x= y*y\). In case the ring is a UniqueFactorizationDomain
, \( y\) is uniquely defined up to multiplication by units.
AdaptableBinaryFunction
AlgebraicStructureTraits
Types | |
typedef unspecified_type | result_type |
Is AlgebraicStructureTraits::Boolean . More... | |
typedef unspecified_type | first_argument |
Is AlgebraicStructureTraits::Type . More... | |
typedef unspecified_type | second_argument |
Is AlgebraicStructureTraits::Type& . More... | |
Operations | |
result_type | operator() (first_argument_type x, second_argument_type y) |
returns true in case \( x\) is a square, i.e. \( x = y*y\). More... | |
result_type | operator() (first_argument_type x) |
returns true in case \( x\) is a square. More... | |
typedef unspecified_type AlgebraicStructureTraits_::IsSquare::first_argument |
typedef unspecified_type AlgebraicStructureTraits_::IsSquare::result_type |
typedef unspecified_type AlgebraicStructureTraits_::IsSquare::second_argument |
result_type AlgebraicStructureTraits_::IsSquare::operator() | ( | first_argument_type | x | ) |
returns true
in case \( x\) is a square.
result_type AlgebraicStructureTraits_::IsSquare::operator() | ( | first_argument_type | x, |
second_argument_type | y | ||
) |
returns true
in case \( x\) is a square, i.e. \( x = y*y\).