Skip to content

Boltz.Basis API Reference

Warning

The function calls for these basis functions should be considered experimental and are subject to change without deprecation. However, the functions themselves are stable and can be freely used in combination with the other Layers and Models.

Boltz.Basis.Chebyshev Method
julia
Chebyshev(n; dim::Int=1)

Constructs a Chebyshev basis of the form [T0(x),T1(x),,Tn1(x)] where Tj(.) is the jth Chebyshev polynomial of the first kind.

Arguments

  • n: number of terms in the polynomial expansion.

Keyword Arguments

  • dim::Int=1: The dimension along which the basis functions are applied.

source

Boltz.Basis.Cos Method
julia
Cos(n; dim::Int=1)

Constructs a cosine basis of the form [cos(x),cos(2x),,cos(nx)].

Arguments

  • n: number of terms in the cosine expansion.

Keyword Arguments

  • dim::Int=1: The dimension along which the basis functions are applied.

source

Boltz.Basis.Fourier Method
julia
Fourier(n; dim=1)

Constructs a Fourier basis of the form

Fj(x)={cos(j2x)if j is evensin(j2x)if j is odd

Arguments

  • n: number of terms in the Fourier expansion.

Keyword Arguments

  • dim::Int=1: The dimension along which the basis functions are applied.

source

Boltz.Basis.Legendre Method
julia
Legendre(n; dim::Int=1)

Constructs a Legendre basis of the form [P0(x),P1(x),,Pn1(x)] where Pj(.) is the jth Legendre polynomial.

Arguments

  • n: number of terms in the polynomial expansion.

Keyword Arguments

  • dim::Int=1: The dimension along which the basis functions are applied.

source

Boltz.Basis.Polynomial Method
julia
Polynomial(n; dim::Int=1)

Constructs a Polynomial basis of the form [1,x,,x(n1)].

Arguments

  • n: number of terms in the polynomial expansion.

Keyword Arguments

  • dim::Int=1: The dimension along which the basis functions are applied.

source

Boltz.Basis.Sin Method
julia
Sin(n; dim::Int=1)

Constructs a sine basis of the form [sin(x),sin(2x),,sin(nx)].

Arguments

  • n: number of terms in the sine expansion.

Keyword Arguments

  • dim::Int=1: The dimension along which the basis functions are applied.

source