Git Product home page Git Product logo

desinceig.jl's People

Contributors

mikaelslevinsky avatar pjgaudre avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ccontrer gharib85

desinceig.jl's Issues

Tests fail with more accurate sinc differentiation matrices

Prior to today, the second order differentiation matrix's infinity-norms of the error on the sinc points was:

julia> using SincFun # checkout commit 4a656dc29a34247c65388d11d513a5982b2f256d

julia> k=collect(-500.0:500.0);

julia> norm(sinc(2,k)-convert(Vector{Float64},sinc(2,convert(Vector{BigFloat},k))),Inf)
1.734723475976807e-18

julia> norm(sinc(2,k)./convert(Vector{Float64},sinc(2,convert(Vector{BigFloat},k)))-1,Inf)
3.3306690738754696e-16

Now, I updated the code to make it essentially allocation-free, and the infinity-norm is also smaller:

julia> using SincFun # checkout master

julia> k=collect(-500.0:500.0);

julia> norm(sinc(2,k)-convert(Vector{Float64},sinc(2,convert(Vector{BigFloat},k))),Inf)
4.336808689942018e-19

julia> norm(sinc(2,k)./convert(Vector{Float64},sinc(2,convert(Vector{BigFloat},k)))-1,Inf)
2.220446049250313e-16

The tests fail because it's not clear how many eigenvalues will be returned, just the ones below the threshold tolerance. And somehow the results are worse in that there are fewer eigenvalues returned than before?

Centrosymmetry

I can't seem to get my code for centrosymmetry to work. When I run my code, I obtain the following error:

using DESincEig, SincFun
(RESULTS, All_Abs_Error_Approx , hoptimal , n, MatrixSizes)=SincEigen(x->x.^2+x.^4,ones,infinite2{Float64}(), [0.125,0.125] , [2.0,2.0] , pi/4,Centro=true)

WARNING: [a,b] concatenation is deprecated; use [a;b] instead
in depwarn at deprecated.jl:73
in oldstyle_vcat_warning at abstractarray.jl:29
in vect at abstractarray.jl:38
in SincEigen at C:\Users\Philippe.julia\v0.4\DESincEig\src\DESincEig.jl:228
while loading no file, in expression starting on line 0
ERROR: MethodError: call has no method matching call(::Float64, ::Array{Float6
4,1})
Closest candidates are:
BoundsError()
BoundsError(::Any...)
DivideError()
...
in qtilde at C:\Users\Philippe.julia\v0.4\DESincEig\src\DESincEig.jl:158
in SincEigen at C:\Users\Philippe.julia\v0.4\DESincEig\src\DESincEig.jl:222

It appears to be in the function qtilde, however, when I run my code without any centrosymmety, (Centro =false), there is no problem....

Add tests

A small test suite of core functions would help development.

Use a Julia type Range?

This line declares that Range is a Vector{Int64}, which is odd. Depending on the use, is Range better used as a Julia Range?

typeof(1:100)
subtypes(Range)
super(Range)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.