api / koma / ceil

ceil

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

Rounds each element to the integer which is nearest to the element and still less than the element (i.e. truncation).

Parameters

arr - An arbitrarily sized matrix

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

fun ceil(num:Double):Int

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

fun ceil(num:Int):Double

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