-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
205 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,30 @@ | ||
""" | ||
struct LaguerreBasis{P} <: AbstractMultipleOrthogonalBasis{P} | ||
polynomials::Vector{P} | ||
end | ||
struct LaguerreBasis <: AbstractMultipleOrthogonal end | ||
Orthogonal polynomial with respect to the univariate weight function ``w(x) = \\exp(-x)`` over the interval ``[0, \\infty]``. | ||
""" | ||
struct LaguerreBasis{P} <: AbstractMultipleOrthogonalBasis{P} | ||
polynomials::Vector{P} | ||
end | ||
struct Laguerre <: AbstractMultipleOrthogonal end | ||
|
||
# TODO implement multiplication with https://www.jstor.org/stable/2002985 | ||
|
||
function MP.polynomial_type(::Type{<:LaguerreBasis}, V::Type) | ||
function MP.polynomial_type(::Type{Laguerre}, V::Type) | ||
return MP.polynomial_type(V, Float64) | ||
end | ||
|
||
even_odd_separated(::Type{<:LaguerreBasis}) = false | ||
even_odd_separated(::Type{Laguerre}) = false | ||
|
||
reccurence_first_coef(::Type{<:LaguerreBasis}, degree) = -1 | ||
reccurence_second_coef(::Type{<:LaguerreBasis}, degree) = (2degree - 1) | ||
reccurence_third_coef(::Type{<:LaguerreBasis}, degree) = -(degree - 1) | ||
reccurence_deno_coef(::Type{<:LaguerreBasis}, degree) = degree | ||
reccurence_first_coef(::Type{Laguerre}, degree) = -1 | ||
reccurence_second_coef(::Type{Laguerre}, degree) = (2degree - 1) | ||
reccurence_third_coef(::Type{Laguerre}, degree) = -(degree - 1) | ||
reccurence_deno_coef(::Type{Laguerre}, degree) = degree | ||
|
||
function degree_one_univariate_polynomial( | ||
::Type{<:LaguerreBasis}, | ||
::Type{Laguerre}, | ||
variable::MP.AbstractVariable, | ||
) | ||
MA.@rewrite(1 - variable) | ||
end | ||
|
||
function _scalar_product_function(::Type{<:LaguerreBasis}, i::Int) | ||
function _scalar_product_function(::Type{Laguerre}, i::Int) | ||
return factorial(i) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.