From aa24b90e49c9231ae87539353c4fb3e7eefd3803 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Fri, 30 Aug 2024 15:05:48 -0400 Subject: [PATCH 1/2] mark the MatrixReshaped type as deprecated --- src/deprecates.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/deprecates.jl b/src/deprecates.jl index 3cfc20a5c6..1872ec60e9 100644 --- a/src/deprecates.jl +++ b/src/deprecates.jl @@ -54,6 +54,7 @@ end # Deprecate `MatrixReshaped` const MatrixReshaped{S<:ValueSupport,D<:MultivariateDistribution{S}} = ReshapedDistribution{2,S,D} +Base.deprecate(Distributions, :MatrixReshaped) @deprecate MatrixReshaped( d::MultivariateDistribution, n::Integer, p::Integer=n ) reshape(d, (n, p)) From 3ffdf4381551466fce08932b08dd479acc6ccfba Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Fri, 30 Aug 2024 15:14:23 -0400 Subject: [PATCH 2/2] Update deprecates.jl --- src/deprecates.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/deprecates.jl b/src/deprecates.jl index 1872ec60e9..3106154a5e 100644 --- a/src/deprecates.jl +++ b/src/deprecates.jl @@ -54,7 +54,7 @@ end # Deprecate `MatrixReshaped` const MatrixReshaped{S<:ValueSupport,D<:MultivariateDistribution{S}} = ReshapedDistribution{2,S,D} -Base.deprecate(Distributions, :MatrixReshaped) +Base.deprecate(@__MODULE__, :MatrixReshaped) @deprecate MatrixReshaped( d::MultivariateDistribution, n::Integer, p::Integer=n ) reshape(d, (n, p))