From 8ff88561e2c8cb47a5818fbb797519ef933a93bb Mon Sep 17 00:00:00 2001 From: Lukas Devos Date: Thu, 9 Jan 2025 19:19:41 -0500 Subject: [PATCH] Add LinearAlgebra dependency --- Project.toml | 2 ++ src/diaginterface/diaginterface.jl | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Project.toml b/Project.toml index 3d0f630..cbb1ca6 100644 --- a/Project.toml +++ b/Project.toml @@ -7,6 +7,7 @@ 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" @@ -14,6 +15,7 @@ TypeParameterAccessors = "7e5a90cf-f82e-492e-a09b-e3e26432c138" 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" diff --git a/src/diaginterface/diaginterface.jl b/src/diaginterface/diaginterface.jl index 609b4a0..230e301 100644 --- a/src/diaginterface/diaginterface.jl +++ b/src/diaginterface/diaginterface.jl @@ -1,5 +1,7 @@ # TODO: Turn these into `@interface ::AbstractDiagonalArrayInterface` functions. +using LinearAlgebra: LinearAlgebra + diaglength(a::AbstractArray{<:Any,0}) = 1 function diaglength(a::AbstractArray)