Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compare two WeightedBasis #64

Open
putianyi889 opened this issue Oct 22, 2020 · 1 comment
Open

Compare two WeightedBasis #64

putianyi889 opened this issue Oct 22, 2020 · 1 comment

Comments

@putianyi889
Copy link

Could we claim that two WeightedBasis are equal iff both the weights and the basis are equal?

==(A::WeightedBasis, B::WeightedBasis) = A.args == B.args

If so, we can omit this line in OrthogonalPolynomialsQuasi.jl/jacobi.jl:

==(A::WeightedJacobi, B::WeightedJacobi) = A.args == B.args
@dlfivefifty
Copy link
Member

We can if they are weighted orthogonal polynomials. Otherwise, technically no but in practice yes...

(Basis is not really well-defined right now. Perhaps with a definition we can justify this)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants