B
barker7
I use a simple double[] array plus a variable to store the row size to
represent two dimensional data. I need to quickly copy this data to a
two dimensional array: double[,].
Currently I iterate through the double[], one by one and place it into
the preallocated double[,]. The arrays are large, and I'm doing a lot
of these. Thus it has become a significant bottleneck.
Can anyone suggest a faster way to convert a double[] + row size info
to a double[,]. I'm hoping there is some way to use one of the
Array.Copy() methods to copy at least a whole row at a time.
Thanks,
Mitch
represent two dimensional data. I need to quickly copy this data to a
two dimensional array: double[,].
Currently I iterate through the double[], one by one and place it into
the preallocated double[,]. The arrays are large, and I'm doing a lot
of these. Thus it has become a significant bottleneck.
Can anyone suggest a faster way to convert a double[] + row size info
to a double[,]. I'm hoping there is some way to use one of the
Array.Copy() methods to copy at least a whole row at a time.
Thanks,
Mitch