elbow-jason / annex

Artificial Neural Networks in Elixir
MIT License
55 stars 3 forks source link

Testing mutable arrays #37

Open josevalim opened 5 years ago

josevalim commented 5 years ago

Hi @elbow-jason! 👋

Nice meeting you at ElixirConf! I remember I mentioned to you that, because the existing ndarrays implementations are immutable, your code can be relying on immutable assumptions. So on the flight back home I actually thought of a simple we can easily test this: just wrap one of the existing immutable implementations in an Agent/GenServer! This could be something useful for you to run in your test suite. For instance, you could run the whole test suite multiple times, one time using the immutable and another the mutable one.

This may not be an issue, so feel free to close this!