From db498d9e316abb43f27e63cb61e447847c3abc06 Mon Sep 17 00:00:00 2001 From: john verzani Date: Thu, 25 May 2023 20:45:11 -0400 Subject: [PATCH] adjust vander for Measurements (#504) --- Project.toml | 2 +- src/polynomials/standard-basis.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index b73e719c..cf2cd6c8 100644 --- a/Project.toml +++ b/Project.toml @@ -2,7 +2,7 @@ name = "Polynomials" uuid = "f27b6e38-b328-58d1-80ce-0feddd5e7a45" license = "MIT" author = "JuliaMath" -version = "3.2.12" +version = "3.2.13" [deps] ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4" diff --git a/src/polynomials/standard-basis.jl b/src/polynomials/standard-basis.jl index 0b6db9dd..cbc19409 100644 --- a/src/polynomials/standard-basis.jl +++ b/src/polynomials/standard-basis.jl @@ -513,7 +513,7 @@ end # skip some degrees function vander(P::Type{<:StandardBasisPolynomial}, x::AbstractVector{T}, degs) where {T <: Number} A = Matrix{T}(undef, length(x), length(degs)) - Aᵢ = one.(x) + Aᵢ = ones(T, length(x)) i′ = 1 for i ∈ 0:maximum(degs)