JuliaArrays / InfiniteArrays.jl

A Julia package for representing infinite-dimensional arrays
MIT License
72 stars 10 forks source link

permutedims(a::InfRange) =a' is a hack #17

Closed dlfivefifty closed 4 years ago

dlfivefifty commented 5 years ago

Because adjoints have special scalar dot product, this was a Q&D hack that needs to be fixed. The "right way" is to support infinite ReshapedArray.

dlfivefifty commented 4 years ago

This was fixed at some point:

julia> permutedims(1:∞)
1×∞ InfiniteArrays.ReshapedArray{Int64,2,InfiniteArrays.InfUnitRange{Int64},Tuple{Int64,InfiniteArrays.Infinity},Tuple{}} with indices Base.OneTo(1)×OneToInf():
 1  2  3  4  5  …