We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b009797 commit 5621b48Copy full SHA for 5621b48
1 file changed
ext/FunctionImplementationsLinearAlgebraExt/FunctionImplementationsLinearAlgebraExt.jl
@@ -5,7 +5,7 @@ import LinearAlgebra as LA
5
6
struct DiagonalStyle <: FI.AbstractMatrixStyle end
7
FI.Style(::Type{<:LA.Diagonal}) = DiagonalStyle()
8
-const permuteddims_diag = FI.Implementation(FI.permuteddims, DiagonalStyle())
+const permuteddims_diag = DiagonalStyle()(FI.permuteddims)
9
function permuteddims_diag(a::AbstractArray, perm)
10
(ndims(a) == length(perm) && isperm(perm)) ||
11
throw(ArgumentError("no valid permutation of dimensions"))
0 commit comments