Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.7k
Closed
Milestone
Description
Currently, Julia defines
typealias StridedArray{T,N,A<:Array} Union(Array{T,N}, SubArray{T,N,A})It seems like it would be better to define
abstract StridedArray{T,N} <: AbstractArray{T,N}and haveArray andSubArray both inherit fromStridedArray.
The reason is that I would like to define a newStridedArray type (wrapping a NumPyndarray). There is no reason, as far as I can tell, that I can't provide all the functionality of aSubArray and be used everywhere the latter is usable, but currently it does not seem possible to do this. Changing toabstract StridedArray would fix this.