hash

fun <T : LinearType<T>> LinearRange1D<T>.hash(seed: Int, x: Int): T(source)

Computes a hashed value based on the provided seed and input, and generates a LinearType instance using the hash results.

Return

a LinearType instance computed from the hash values

Parameters

seed

The seed value used for hash computation.

x

The integer input value used for hash computation.


fun <T : LinearType<T>> LinearRange2D<T>.hash(seed: Int, x: Int): T(source)
fun <T : LinearType<T>> LinearRange3D<T>.hash(seed: Int, x: Int): T(source)
fun <T : LinearType<T>> LinearRange4D<T>.hash(seed: Int, x: Int)(source)

Computes a hashed value based on the provided seed and input, and generates a LinearType instance using the hash results.

Return

a LinearType instance computed from the hash values

Parameters

seed

an integer seed value used to initialize the hash computation

x

an integer input used in the hash computation