toDoubleArray
fun Array<out Double>.toDoubleArray(): DoubleArrayReturns an array of Double containing all of the elements of this generic array.
fun Collection<Double>.toDoubleArray(): DoubleArrayReturns an array of Double containing all of the elements of this collection.