api / koma / abs

abs

fun abs(arr:Matrix<Double>):Matrix<Double>

Returns a matrix of the absolute value of each element in the input matrix.

Parameters

arr - An arbitrarily sized matrix

Return A matrix consisting of the operation performed element-wise.

fun abs(arr:Double):Double

A convenience function performing the abs operation via the kotlin.math equivalent call.

fun abs(arr:Int):Double

A convenience function performing the abs via the kotlin.math equivalent call.