Skip to content
0.0k

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

Layout Switch

Adjust the layout style of VitePress to adapt to different reading needs and screens.

Expand all
The sidebar and content area occupy the entire width of the screen.
Expand sidebar with adjustable values
Expand sidebar width and add a new slider for user to choose and customize their desired width of the maximum width of sidebar can go, but the content area width will remain the same.
Expand all with adjustable values
Expand sidebar width and add a new slider for user to choose and customize their desired width of the maximum width of sidebar can go, but the content area width will remain the same.
Original width
The original layout width of VitePress

Page Layout Max Width

Adjust the exact value of the page width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the page layout
A ranged slider for user to choose and customize their desired width of the maximum width of the page layout can go.

Content Layout Max Width

Adjust the exact value of the document content width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the content layout
A ranged slider for user to choose and customize their desired width of the maximum width of the content layout can go.

Spotlight

Highlight the line where the mouse is currently hovering in the content to optimize for users who may have reading and focusing difficulties.

ONOn
Turn on Spotlight.
OFFOff
Turn off Spotlight.