Hi Matthieu,

Thanks for those links!!. Those lazy views look like what I'm trying to
achieve. I'm actually working on a multidimensional container of items,
elm-ndarray,
https://github.com/jscriptcoder/elm-ndarray/blob/master/src/NdArray.elm. Still
some work to do. I need to re-write *map* and *fold* since they're not
correct and implement *step*. This is based on the work of Mikola Lysenko,
https://github.com/scijs/ndarray, which in turn is based on Python ndarray,
https://docs.scipy.org/doc/numpy-1.13.0/reference/arrays.ndarray.html,
where operations such as slicing, indexing, transposing, reshaping, etc..
are all O(1). I'm missing though the possibility of using TypedArrays.

Fran

On Mon, Nov 20, 2017 at 8:01 AM Matthieu Pizenberg <
[email protected]> wrote:

> Hi Francisco, just a few words about arrays and image manipulation.
>
> I've been doing some work along this way and encountered multiple issues.
> One of them was with slicing. If I'm not wrong Robin's work will be merged
> in 0.19 but meanwhile, you should be aware that there are few issues with
> the current arrays, especially large ones [1]. You can already use his
> library as a drop-in replacement though.
>
> I was also about to mention the numelm project but I think you know about
> it ^^. Regarding those kind of operations (slicing, transposing, ...) I
> think a generic image (/tensor) type would benefit a lot from having lazy
> "views" [2] and expressions of matrices as explained in the xtensor [3]
> project I mentionned in your numelm post.
>
> Cheers and good luck for this amazing project!
>
> [1] elm 0.18 array issues : https://github.com/elm-lang/core/issues/649
> [2] lazy views at 12:30 : https://youtu.be/mwIQUgigjbE?t=12m30s
> [3] https://github.com/QuantStack/xtensor
>
> --
> You received this message because you are subscribed to the Google Groups
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to