mirror of
https://github.com/luxfi/lattice.git
synced 2026-09-24 00:25:44 +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
|
|
}
|