It is related to discussion #90 and #110. Because NDArray() does not provide any hints on parameters, it is always nice to use functions in array_creation_routine to create arrays.
The array creation functions are unified in such a way:
NDAarray.__init__() reads in shape information and initializes an empty ndarray.
All other creation routines are implemented by the functions in the array_creation_routine module. For example, to create an array with filled value, the function nm.full should be used. To create an array from a list, the function nm.array should be used.
It is related to discussion #90 and #110. Because
NDArray()
does not provide any hints on parameters, it is always nice to use functions inarray_creation_routine
to create arrays.The array creation functions are unified in such a way:
NDAarray.__init__()
reads inshape
information and initializes an empty ndarray.array_creation_routine
module. For example, to create an array with filled value, the functionnm.full
should be used. To create an array from a list, the functionnm.array
should be used.