DoubleArray
An array of doubles. When targeting the JVM, instances of this class are represented as double[].
Since Kotlin
1.0Constructors
Creates a new array of the specified size, where each element is calculated by calling the specified init function.
Creates a new array of the specified size, with all elements initialized to zero.
Functions
Properties
Extensions
Searches the array or the range of the array for the provided element using the binary search algorithm. The array is expected to be sorted, otherwise the result is undefined.
Returns new array which is a copy of the original array.
Returns new array which is a copy of the original array, resized to the given newSize. The copy is either truncated or padded at the end with zero values if necessary.
Returns a new array which is a copy of the specified range of the original array.
Returns an array containing all elements of the original array and then the given element.
Returns an array containing all elements of the original array and then all elements of the given elements collection.
Returns an array containing all elements of the original array and then all elements of the given elements array.
Sorts the array in-place.
Sorts a range in the array in-place.
Returns a new SortedSet of all elements.
Returns a typed object array containing all of the elements of this primitive array.