RealBuffer

inline class RealBuffer(array: DoubleArray) : MutableBuffer<Double>

Specialized MutableBuffer implementation over DoubleArray.

Constructors

RealBuffer
Link copied to clipboard
common
fun RealBuffer(array: DoubleArray)

Functions

contentEquals
Link copied to clipboard
common
open fun contentEquals(other: Buffer<*>): Boolean
Checks content equality with another buffer.
copy
Link copied to clipboard
common
open override fun copy(): RealBuffer
Returns a shallow copy of the buffer.
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
get
Link copied to clipboard
common
open operator override fun get(index: Int): Double
Gets element at given index.
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
iterator
Link copied to clipboard
common
open operator override fun iterator(): DoubleIterator
Iterates over all elements.
set
Link copied to clipboard
common
open operator override fun set(index: Int, value: Double)
Sets the array element at the specified index to the specified value.
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

array
Link copied to clipboard
common
val array: DoubleArray
the underlying array.
size
Link copied to clipboard
common
open override val size: Int
The size of this buffer.

Extensions

contentEquals
Link copied to clipboard
common
fun RealBuffer.contentEquals(vararg doubles: Double): Boolean
Simplified RealBuffer to array comparison