From 6fc54b5b42cc1d867d57da954ea2124f13a44508 Mon Sep 17 00:00:00 2001 From: Chris Rackauckas Date: Thu, 16 Feb 2023 16:45:13 -0500 Subject: [PATCH] Excise staticarrays for staticarrayscore --- Project.toml | 4 ++-- src/DiffEqNoiseProcess.jl | 2 +- src/wiener.jl | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Project.toml b/Project.toml index 314febc..0fdbc7a 100644 --- a/Project.toml +++ b/Project.toml @@ -20,7 +20,7 @@ RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd" Requires = "ae029012-a4dd-5104-9daa-d747884805df" ResettableStacks = "ae5879a3-cd67-5da8-be7f-38c6eb64a37b" SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462" -StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" +StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c" Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" [weakdeps] @@ -43,7 +43,7 @@ RecursiveArrayTools = "2" ResettableStacks = "0.6, 1.0" Requires = "1" SciMLBase = "1" -StaticArrays = "0.10, 0.11, 0.12, 1.0" +StaticArraysCore = "1.4" julia = "1.6" [extras] diff --git a/src/DiffEqNoiseProcess.jl b/src/DiffEqNoiseProcess.jl index 85e6c0b..eb8d059 100644 --- a/src/DiffEqNoiseProcess.jl +++ b/src/DiffEqNoiseProcess.jl @@ -1,7 +1,7 @@ module DiffEqNoiseProcess using ResettableStacks, DiffEqBase, RecipesBase -using RecursiveArrayTools, StaticArrays, Random, Statistics +using RecursiveArrayTools, StaticArraysCore, Random, Statistics using LinearAlgebra import RandomNumbers: Xorshifts diff --git a/src/wiener.jl b/src/wiener.jl index a60dbd2..e436e74 100644 --- a/src/wiener.jl +++ b/src/wiener.jl @@ -3,7 +3,7 @@ const one_over_sqrt2 = 1 / sqrt(2) @inline function wiener_randn(rng::AbstractRNG, proto::Array{T}) where {T} randn(rng, size(proto)) end -@inline function wiener_randn(rng::AbstractRNG, proto::T) where {T <: SArray} +@inline function wiener_randn(rng::AbstractRNG, proto::T) where {T <: StaticArraysCore.SArray} randn(rng, T) end @inline function wiener_randn(rng::AbstractRNG, proto) @@ -32,7 +32,7 @@ end end @inline function WHITE_NOISE_DIST(dW, W, dt, u, p, t, rng) - if typeof(dW) <: AbstractArray && !(typeof(dW) <: SArray) + if typeof(dW) <: AbstractArray && !(typeof(dW) <: StaticArraysCore.SArray) return @fastmath sqrt(abs(dt)) * wiener_randn(rng, dW) else return @fastmath sqrt(abs(dt)) * wiener_randn(rng, typeof(dW))