Matrix

open class Matrix(var width: Int, var height: Int, init: (Int) -> Double = { i -> 0.0})

Inheritors

Constructors

Link copied to clipboard
constructor(width: Int, height: Int, init: (Int) -> Double = { i -> 0.0})

Properties

Link copied to clipboard
var height: Int
Link copied to clipboard
Link copied to clipboard
var width: Int

Functions

Link copied to clipboard
fun add(input: Matrix)
Link copied to clipboard
fun addScaleRow(src: Int, dst: Int, scale: Double)
Link copied to clipboard
fun addToItem(x: Int, y: Int, value: Double)
Link copied to clipboard
fun clone(): Matrix
Link copied to clipboard
fun copy(out: Matrix)
Link copied to clipboard
fun getItem(x: Int, y: Int): Double
Link copied to clipboard
fun mul(input: Matrix, out: Matrix)
Link copied to clipboard
fun println()
Link copied to clipboard
fun runForEach(f: (Int, Int, Double) -> Double)
Link copied to clipboard
fun scale(scalar: Double)
Link copied to clipboard
fun scaleRow(row: Int, scale: Double)
Link copied to clipboard
fun set(value: DoubleArray)
Link copied to clipboard
fun setItem(x: Int, y: Int, value: Double)
Link copied to clipboard
fun subtract(input: Matrix)
Link copied to clipboard
fun swapRows(row1: Int, row2: Int)