toDoubleArray

Returns the data from the array as a flat array.