NDArray with parametric type?
Should we make NDArray be parametric like Base's Array?
One of the benefit I can tell is that it will help for multiple dispatch,
but how about the performance?
BTW, what's the pros and cons if we make NDArray as an subtype of AbstractArray?
I have been wanting to make NDArray parametric for quite some time. #233 was one of the points where having it not be parametric caused big performance problems. I am not quite convinced if NDArray should be a subtype of AbstractArray, but maybe it should if we are pushing to make MXNet.jl more in line with Julia semantics.
ok, I want to make NDArray parametric first #331
I have no objection. What would the libmxnet function on NDArrays become? Are we going to define functions for all combinations of NDArrays or just define for the non-typed version?
some of them benifit from dispatching, e.g. https://github.com/dmlc/MXNet.jl/pull/331/files#diff-0ca423d226049cc5744ebade856d9f1bR666
And most of functions are using UnionAll (NDArray without any parameter) type
Thanks! This looks good to me.