api / koma / sqrt

sqrt

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

Returns a matrix of the sqrt of each element in the input matrix. Does not yet support complex numbers.

Parameters

arr - An arbitrarily sized matrix

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

fun sqrt(arr:Double):Double fun sqrt(arr:Int):Double

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