mirror of
https://github.com/tuneinsight/lattigo.git
synced 2025-09-13 03:27:14 +00:00
19 lines
286 B
Go
19 lines
286 B
Go
package bignum
|
|
|
|
// Basis is a type for the polynomials basis
|
|
type Basis int
|
|
|
|
const (
|
|
// Monomial : x^(a+b) = x^a * x^b
|
|
Monomial = Basis(0)
|
|
// Chebyshev : T_(a+b) = 2 * T_a * T_b - T_(|a-b|)
|
|
Chebyshev = Basis(1)
|
|
)
|
|
|
|
type MetaData struct {
|
|
Basis
|
|
Interval
|
|
IsOdd bool
|
|
IsEven bool
|
|
}
|