Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ authors = ["Chris Rackauckas <accounts@chrisrackauckas.com>"]
version = "1.10.0"

[deps]
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
FiniteDiff = "6a86dc24-6348-571c-b903-95158fe2bd41"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
Expand All @@ -17,6 +18,7 @@ StochasticDiffEq = "789caeaf-c7a9-5a7d-9973-96adeb23e2a0"
TreeViews = "a2a6695c-b41b-5b7d-aed9-dbfdeacea5d7"

[compat]
ArrayInterface = "7"
DiffEqBase = "6.5"
FiniteDiff = "2.3"
ForwardDiff = "0.10"
Expand Down
2 changes: 1 addition & 1 deletion src/MultiScaleArrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Base: length, push!, deleteat!, getindex, setindex!, eachindex, ndims,
==, *, +, /, -, show, vec, reshape

import RecursiveArrayTools: recursivecopy, recursivecopy!

import ArrayInterface
import RecursiveArrayTools: chain

"""
Expand Down
10 changes: 10 additions & 0 deletions src/math.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,16 @@ function common_number(a, b)
throw(DimensionMismatch("number of nodes must be equal"))))
end

## ArrayInterface

function ArrayInterface.zeromatrix(b::AMSA)
zero(eltype(b), length(b), length(b))
end

function ArrayInterface.undefmatrix(b::AMSA)
Array{eltype(b)}(undef, length(b), length(b))
end

## Linear Algebra

function LinearAlgebra.ldiv!(A::LinearAlgebra.LU, b::AMSA)
Expand Down