diff --git a/Project.toml b/Project.toml index c222105..2959561 100644 --- a/Project.toml +++ b/Project.toml @@ -2,6 +2,7 @@ name = "FastTransforms" uuid = "057dd010-8810-581a-b7be-e3fc3b93f78c" version = "0.17" + [deps] AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c" ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a" diff --git a/src/GramMatrix.jl b/src/GramMatrix.jl index e7e8a70..8bf6dc4 100644 --- a/src/GramMatrix.jl +++ b/src/GramMatrix.jl @@ -64,7 +64,7 @@ function GramMatrix(μ::AbstractVector{T}, X::XT, p0::T) where {T, XT <: Abstrac n = (N+1)÷2 @assert N == size(X, 1) == size(X, 2) @assert bandwidths(X) == (1, 1) - W = Matrix{T}(undef, N, N) + W = LowerTriangular(Matrix{T}(undef, N, N)) if n > 0 @inbounds for m in 1:N W[m, 1] = p0*μ[m] diff --git a/test/GramMatrixtests.jl b/test/grammatrixtests.jl similarity index 100% rename from test/GramMatrixtests.jl rename to test/grammatrixtests.jl