Skip to content
Designs for new Base array interface primitives
Julia TeX
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Default to ismutable(array) = true Nov 15, 2019
test Fix ismutable for sparse arrays Nov 14, 2019
.gitignore move to Project.toml Jul 27, 2019
.travis.yml Create .travis.yml Nov 1, 2018
CITATION.bib Add journal to CITATION.bib Jun 24, 2019
LICENSE Initial commit Oct 31, 2018
Project.toml Update Project.toml Nov 15, 2019 documented allowed get and set Jul 30, 2019
appveyor.yml Update appveyor.yml Nov 1, 2018


Build Status Build status

Julia has only recently reached v1.0 and the AbstractArray interface is still quite new. The purpose of this library is to solidify extensions to the current AbstractArray interface which are put to use in package ecosystems like DifferentialEquations.jl. Since these libraries are live, this package will serve as a staging ground for ideas before they merged into Base Julia. For this reason, no functionality is exported so that way if such functions are added and exported in a future Base Julia there will be no issues with the upgrade.


A trait function for whether x is a mutable or immutable array. Used for dispatching to in-place and out-of-place versions of functions.


A trait function for whether a matrix x is a sparse structured matrix.


A trait function for whether an array x can use setindex!


Determine whether findstructralnz accepts the parameter x


Returns iterators (I,J) of the non-zeros in the structure of the matrix x. The same as the to first two elements of findnz(::SparseMatrixCSC)


A trait function for whether matrix_colors(A) is a fast algorithm or a slow (graphically-based) method.


Returns an array of for the sparsity colors of a matrix type A. Also includes an abstract type ColoringAlgorithm for matrix_colors(A,alg::ColoringAlgorithm) of non-structured matrices.


A trait function for whether scalar indexing is fast on a given array type.


A getindex which is always allowed.


A setindex! which is always allowed.

List of things to add

Array Types to Handle

The following common array types are being understood and tested as part of this development.

  • Array
  • Various versions of sparse arrays
  • SArray
  • MArray
  • FieldVector
  • ArrayPartition
  • VectorOfArray
  • DistributedArrays
  • GPUArrays (CLArrays and CuArrays)
  • AFArrays
  • MultiScaleArrays
  • LabelledArrays
You can’t perform that action at this time.