Multidimensional arrays #20
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Would it be possible to have a functions similar to
IArray.ConvertToDoubleArray
returning arrays of the right dimensions? Currently one needs to know how the file format orders multidimensional data into single dimensional array in order to be able to use it.Thanks for opening the issue!
I added the following methods to IArray:
double[,]? ConvertTo2dDoubleArray();
Array? ConvertToMultidimensionalDoubleArray();
The 2-dimensional case is probably the most common, so I feel that it deserves an explicit method.
The update is published on nuget.org as version 1.4.0-beta1. Please see if the API is suitable for you.
I guess I will do the same for
ConvertToComplexArray()
later.I used
ConvertToMultidimensionalDoubleArray
and its working as expected (my array is 3D). thank you!I would argue that
ConvertToMultidimensionalDoubleArray() as double[,]?
is simple enough to not add extra API, but if you go for it I think it should be called2D
rather than2d
, all classes in the framework are2D
and/or3D
with capital D.