map

@JvmName(name = "mapII")
fun SquareMatrix<Int>.map(transform: (Int) -> Int): SquareMatrix<Int>

Creates a new SquareMatrix whose members are the transform of those in this one.

Parameters

transform

operation to map elements


@JvmName(name = "mapID")
fun SquareMatrix<Int>.map(transform: (Int) -> Double): SquareMatrix<Double>
@JvmName(name = "mapIF")
fun SquareMatrix<Int>.map(transform: (Int) -> Float): SquareMatrix<Float>
@JvmName(name = "mapIL")
fun SquareMatrix<Int>.map(transform: (Int) -> Long): SquareMatrix<Long>
@JvmName(name = "mapDI")
fun SquareMatrix<Double>.map(transform: (Double) -> Int): SquareMatrix<Int>
@JvmName(name = "mapDD")
fun SquareMatrix<Double>.map(transform: (Double) -> Double): SquareMatrix<Double>
@JvmName(name = "mapDF")
fun SquareMatrix<Double>.map(transform: (Double) -> Float): SquareMatrix<Float>
@JvmName(name = "mapDL")
fun SquareMatrix<Double>.map(transform: (Double) -> Long): SquareMatrix<Long>
@JvmName(name = "mapFI")
fun SquareMatrix<Float>.map(transform: (Float) -> Int): SquareMatrix<Int>
@JvmName(name = "mapFD")
fun SquareMatrix<Float>.map(transform: (Float) -> Double): SquareMatrix<Double>
@JvmName(name = "mapFF")
fun SquareMatrix<Float>.map(transform: (Float) -> Float): SquareMatrix<Float>
@JvmName(name = "mapFL")
fun SquareMatrix<Float>.map(transform: (Float) -> Long): SquareMatrix<Long>
@JvmName(name = "mapLI")
fun SquareMatrix<Long>.map(transform: (Long) -> Int): SquareMatrix<Int>
@JvmName(name = "mapLD")
fun SquareMatrix<Long>.map(transform: (Long) -> Double): SquareMatrix<Double>
@JvmName(name = "mapLF")
fun SquareMatrix<Long>.map(transform: (Long) -> Float): SquareMatrix<Float>
@JvmName(name = "mapLL")
fun SquareMatrix<Long>.map(transform: (Long) -> Long): SquareMatrix<Long>


fun <T, V> Pool<T>.map(by: (V) -> T): Pool<V>

Creates a new Pool that is based on another of a different type.

Parameters

T

type of the original Pool

V

type of the new Pool

by

way to create an observer for the new Pool based on one for the original