Skip to content

Commit

Permalink
reduce permute dims to transpose/adjoint for number-values quasi matr…
Browse files Browse the repository at this point in the history
…ices
  • Loading branch information
dlfivefifty committed Jan 27, 2025
1 parent f241cf7 commit 7cca47f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "QuasiArrays"
uuid = "c4ea9172-b204-11e9-377d-29865faadc5c"
authors = ["Sheehan Olver <solver@mac.com>"]
version = "0.11.9"
version = "0.11.10"

[deps]
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"
Expand Down
4 changes: 2 additions & 2 deletions src/quasipermutedims.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ end
# end

permutedims(A::AbstractQuasiMatrix) = PermutedDimsQuasiArray(A, (2,1))
permutedims(v::AbstractQuasiVector{<:Real}) = v'
permutedims(v::AbstractQuasiVector{<:Number}) = transpose(v)
permutedims(v::AbstractQuasiVecOrMat{<:Real}) = v'
permutedims(v::AbstractQuasiVecOrMat{<:Number}) = transpose(v)

Check warning on line 74 in src/quasipermutedims.jl

View check run for this annotation

Codecov / codecov/patch

src/quasipermutedims.jl#L73-L74

Added lines #L73 - L74 were not covered by tests
# permutedims(v::AbstractQuasiVector) = reshape(v, (1, length(v)))

# function Base.showarg(io::IO, A::PermutedDimsQuasiArray{T,N,perm}, toplevel) where {T,N,perm}
Expand Down

0 comments on commit 7cca47f

Please sign in to comment.