Comments (2)
Would be able to make a PR with test for this? We just need to change that line to
SymTridiagonal(promote(alph, beta)...)
(Even better, change alph
-> α
and beta
-> β
)
from fastgaussquadrature.jl.
Thanks!
I'll make a PR soon.
Minor thing, but
SymTridiagonal(promote(collect(α), β)...)
works fine.
minor example for promote
.
julia> versioninfo()
Julia Version 1.5.3
Commit 788b2c77c1 (2020-11-09 13:37 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: AMD Ryzen 7 2700X Eight-Core Processor
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-9.0.1 (ORCJIT, znver1)
julia> promote(1:3:4,rand(5))
ERROR: promotion of types StepRange{Int64,Int64} and Array{Float64,1} failed to change any arguments
Stacktrace:
[1] error(::String, ::String, ::String) at ./error.jl:42
[2] sametype_error(::Tuple{StepRange{Int64,Int64},Array{Float64,1}}) at ./promotion.jl:306
[3] not_sametype(::Tuple{StepRange{Int64,Int64},Array{Float64,1}}, ::Tuple{StepRange{Int64,Int64},Array{Float64,1}}) at ./promotion.jl:300
[4] promote(::StepRange{Int64,Int64}, ::Array{Float64,1}) at ./promotion.jl:283
[5] top-level scope at REPL[5]:1
julia> promote(collect(1:3:4),rand(5))
([1.0, 4.0], [0.5083186666783843, 0.9151424727982986, 0.8490125570296196, 0.26787162487431626, 0.14753794371832551])
from fastgaussquadrature.jl.
Related Issues (20)
- docstring format is not unified
- Question on unweighted Gauss-Hermite HOT 1
- gausshermite(21) returns error HOT 4
- gausslaguerre(39,44.8) doesn't converge, document these conditions for convergence
- Gauss-Chebyshev documentation has incorrect weights for third and fourth kinds
- Add mutating versions of functions that reuse external storage for sigma points and weights HOT 5
- missing promotion in `gaussjacobi` for integer `α, β` HOT 2
- Gauss–Kronrod points and weights? HOT 5
- export/document 3-term recurrence coefficients HOT 3
- The precision of `gausslegendre` can be improved HOT 1
- PLEASE DO NOT COMMIT DIRECTLY ON THE `master` BRANCH! HOT 3
- Road to v2.0.0 HOT 3
- Loss of accuracy in weights of large Gauss-Jacobi rules HOT 9
- Migrate to travis-ci.com HOT 3
- TagBot trigger issue HOT 12
- `gaussjacobi( 100000, .9, -.1 )` takes much more time than before
- Piessens's Chebyshev series approximations doesn't have enough accurate HOT 4
- Time to switch to GitHub Actions? HOT 18
- Quadrature rules for the weight function w(x) = 1/(1+x^2) HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastgaussquadrature.jl.