Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::AlNumber Concept Reference

A number of the entries of a Vector or of a Matrix. More...

#include <al-vector.H>

Concept definition

template<typename N>
concept Aleph::AlNumber = std::copyable<N> and std::convertible_to<int, N>
and std::convertible_to<double, N>
and requires (const N & a, const N & b)
{
{ -a } -> std::convertible_to<N>;
{ a < 0 } -> std::convertible_to<bool>;
{ a < b } -> std::convertible_to<bool>;
{ a <= b } -> std::convertible_to<bool>;
{ a >= b } -> std::convertible_to<bool>;
}
Number Theoretic Transform over Z / MOD Z.
Definition ntt.H:115
A number of the entries of a Vector or of a Matrix.
Definition al-vector.H:77
and
Check uniqueness with explicit hash + equality functors.

Detailed Description

A number of the entries of a Vector or of a Matrix.

It is what every vector and every matrix does with its numbers: 0 is a number, the value of an entry that is not there; the default epsilon, 1e-7, is one too; and a number is zero when its absolute value, which < and the unary - give, is at most the epsilon, by <= and >=. The members that compute with the numbers ask for more: AlAdditiveNumber, AlMultiplicativeNumber and AlDivisibleNumber.

Definition at line 77 of file al-vector.H.