Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jagot/finitedifferencesquasi.jl
https://github.com/jagot/finitedifferencesquasi.jl
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jagot/finitedifferencesquasi.jl
- Owner: jagot
- License: other
- Created: 2018-11-27T07:33:53.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-17T10:08:13.000Z (over 4 years ago)
- Last Synced: 2024-11-15T18:34:59.390Z (2 months ago)
- Language: Julia
- Size: 68.4 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.org
- License: LICENSE.md
Awesome Lists containing this project
README
#+TITLE: FiniteDifferencesQuasi.jl
#+AUTHOR: Stefanos Carlström
#+EMAIL: [email protected]*THIS LIBRARY HAS BEEN DEPRECATED*
a more structured library, with support for FE-DVR and
B-splines as well can be found at[[https://github.com/JuliaApproximation/CompactBases.jl]]
[[https://travis-ci.org/jagot/FiniteDifferencesQuasi.jl][https://travis-ci.org/jagot/FiniteDifferencesQuasi.jl.svg?branch=master]]
[[https://ci.appveyor.com/project/jagot/finitedifferencesquasi-jl][https://img.shields.io/appveyor/ci/jagot/finitedifferencesquasi-jl.svg?logo=appveyor]]
[[https://codecov.io/gh/jagot/FiniteDifferencesQuasi.jl][https://codecov.io/gh/jagot/FiniteDifferencesQuasi.jl/branch/master/graph/badge.svg]]#+PROPERTY: header-args:julia :session *julia-README*
Implementation of finite differences in the framework of
[[https://github.com/JuliaApproximation/ContinuumArrays.jl][ContinuumArrays.jl]].#+BEGIN_SRC julia :exports none
using Pkg
Pkg.activate(".")
#+END_SRC#+BEGIN_SRC julia :exports both :results verbatim
using FiniteDifferencesQuasiB = FiniteDifferences(5,1.0)
#+END_SRC#+RESULTS:
: Finite differences basis {Float64} on 1.0..5.0 with 5 points spaced by Δx = 1.0#+BEGIN_SRC julia :exports both :results verbatim
D = Derivative(axes(B,1))
#+END_SRC#+RESULTS:
: Derivative{Float64,IntervalSets.Interval{:closed,:closed,Float64}}(1.0..5.0)#+BEGIN_SRC julia :exports both :results verbatim
∇ = B'*D*B
#+END_SRC#+RESULTS:
: 5×5 LinearAlgebra.Tridiagonal{Float64,Array{Float64,1}}:
: 0.0 0.5 ⋅ ⋅ ⋅
: -0.5 0.0 0.5 ⋅ ⋅
: ⋅ -0.5 0.0 0.5 ⋅
: ⋅ ⋅ -0.5 0.0 0.5
: ⋅ ⋅ ⋅ -0.5 0.0#+BEGIN_SRC julia :exports both :results verbatim
∇² = B'D'D*B
#+END_SRC#+RESULTS:
: 5×5 LinearAlgebra.SymTridiagonal{Float64,Array{Float64,1}}:
: -2.0 1.0 ⋅ ⋅ ⋅
: 1.0 -2.0 1.0 ⋅ ⋅
: ⋅ 1.0 -2.0 1.0 ⋅
: ⋅ ⋅ 1.0 -2.0 1.0
: ⋅ ⋅ ⋅ 1.0 -2.0