Skip to content

Commit 73ebb10

Browse files
add O(bn) GramMatrix constructor from moments
1 parent 368dcb9 commit 73ebb10

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "FastTransforms"
22
uuid = "057dd010-8810-581a-b7be-e3fc3b93f78c"
3-
version = "0.16.6"
3+
version = "0.16.7"
44

55
[deps]
66
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"

src/GramMatrix.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function GramMatrix(μ::AbstractVector{T}, X::XT, p0::T) where {T, XT <: Abstrac
6464
n = (N+1)÷2
6565
@assert N == size(X, 1) == size(X, 2)
6666
@assert bandwidths(X) == (1, 1)
67-
W = Matrix{T}(undef, N, N)
67+
W = LowerTriangular(Matrix{T}(undef, N, N))
6868
if n > 0
6969
@inbounds for m in 1:N
7070
W[m, 1] = p0*μ[m]

0 commit comments

Comments
 (0)