Skip to content

alsam/FArrayMod.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FArrayMod.jl

provides the ability to use arbitrary starting indices for arrays in Julia programming language.

julia> using FArrayMod

julia> y = FArray(Float64, -1:1, -7:7, -128:512, -5:5, -1:1, -3:3, -2:2, -1:1);

julia> y[-1,-7,-128,-5,-1,-3,-2,-1] = 14
14

julia> y[-1,-7,-128,-5,-1,-3,-2,-1] += 5
19.0

The main purpose of this package is to simplify translation from Fortran codes intensively using Fortran arrays with negative and zero starting indices, such as

  • the codes accompanying the book Numerical Solution of Hyperbolic Partial Differential Equations by prof. John A. Trangenstein Please refer here and here

  • Clawpack (stands for Conservation Laws Package) by prof. Randall J. LeVeque

About

this package is deprecated for modern and up-to-date see https://github.com/alsam/OffsetArrays.jl

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages