Skip to content

Commit

Permalink
Add LinearAlgebra dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Jan 10, 2025
1 parent df9ac29 commit 8ff8856
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ version = "0.2.0"
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"
BroadcastMapConversion = "4a4adec5-520f-4750-bb37-d5e66b4ddeb2"
Derive = "a07dfc7f-7d04-4eb5-84cc-a97f051f655a"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
SparseArraysBase = "0d5efcca-f356-4864-8770-e1ed8d78f208"
TypeParameterAccessors = "7e5a90cf-f82e-492e-a09b-e3e26432c138"

[compat]
ArrayLayouts = "1.10.4"
BroadcastMapConversion = "0.1"
Derive = "0.3.6"
LinearAlgebra = "1.10.0"
SparseArraysBase = "0.2.1"
TypeParameterAccessors = "0.2"
julia = "1.10"
2 changes: 2 additions & 0 deletions src/diaginterface/diaginterface.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# TODO: Turn these into `@interface ::AbstractDiagonalArrayInterface` functions.

using LinearAlgebra: LinearAlgebra

diaglength(a::AbstractArray{<:Any,0}) = 1

function diaglength(a::AbstractArray)
Expand Down

0 comments on commit 8ff8856

Please sign in to comment.