kotlin-numpy / org.jetbrains.numkt.linalg / Linalg / norm

norm

fun <T : Number> norm(x: KtNDArray<T>, ord: Int? = null): Double (source)

Matrix or vector norm.

Parameters

x - input array.

ord - order of the norm.

Return
norm of the matrix or vectors.

fun <T : Number> norm(x: KtNDArray<T>, ord: Int? = null, axis: Int): KtNDArray<Double> (source)