Skip to content

Commit 937b222

Browse files
Update lib/ArrayInterfaceCore/src/ArrayInterfaceCore.jl
Co-authored-by: Chris Elrod <[email protected]>
1 parent 4749381 commit 937b222

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/ArrayInterfaceCore/src/ArrayInterfaceCore.jl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -524,13 +524,7 @@ with weird (recursive) broadcast overloads. For higher-order tensors, this
524524
returns the matrix linear operator type which acts on the `vec` of the array.
525525
"""
526526
function undefmatrix(u)
527-
x = safevec(u)
528-
x .* x'
529-
end
530-
531-
# Reduces compile time burdens
532-
function undefematrix(u::Array{T}) where {T}
533-
out = Matrix{T}(undef, length(u), length(u))
527+
similar(u, length(u), length(u))
534528
end
535529

536530
"""

0 commit comments

Comments
 (0)