Skip to content

Commit

Permalink
mark the MatrixReshaped type as deprecated (#1893)
Browse files Browse the repository at this point in the history
* mark the MatrixReshaped type as deprecated

* Update deprecates.jl
  • Loading branch information
stevengj authored Sep 2, 2024
1 parent e1340f0 commit b219803
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/deprecates.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ end

# Deprecate `MatrixReshaped`
const MatrixReshaped{S<:ValueSupport,D<:MultivariateDistribution{S}} = ReshapedDistribution{2,S,D}
Base.deprecate(@__MODULE__, :MatrixReshaped)
@deprecate MatrixReshaped(
d::MultivariateDistribution, n::Integer, p::Integer=n
) reshape(d, (n, p))
Expand Down

0 comments on commit b219803

Please sign in to comment.