Which is exactly what should be possible to avoid, if we anyhow have to
define all the functions what is the meaning in descending from
AbstractArray? The usefulness of having an abstract Component is to make
concrete instances that retain all the abstract functionality.
On Saturday, 25 April 2015 19:50:20 UTC+3, Simon Danisch wrote:
>
> You need to implement the minimal array interface.
> Something along these lines:
>
> length(c::Cube) = length(c.data)
> eltype{T,N}(c::Cube{T,N}) = T
> ndims{T,N}(c::Cube{T,N}) = N
> size(c::Cube) = size(c.data)
> size((c::Cube, i::Integer) = size(c.data, i)
>
>