NdArray.fromList constructor
NdArray.fromList(
- List list
Creates an array from list
.
Implementation
factory NdArray.fromList(List list) {
final int numDimensions = ListTools.countDimensions(list);
NdArray ndArray = NdArray(numDimensions);
ndArray._data = list;
// Makes the lists growable.
ndArray = ndArray.copy();
return ndArray;
}