api / koma / round

round

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

Rounds each element to the nearest integer value. For elements exactly between integers, choose the highest value.

Parameters

arr - An arbitrarily sized matrix

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

fun round(arr:Double):Double fun round(arr:Int):Double

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