Function arrayfire::norm [] [src]

pub fn norm(input: &Array, ntype: NormType, p: f64, q: f64) -> f64

Find the norm of a matrix

Parameters

  • input is the input matrix
  • ntype is specifies the required norm type using enum NormType
  • p specifies the value of P when ntype is one of VECTOR_P, MATRIX_L_PQ. It is ignored for other values of ntype
  • q specifies the value of Q when ntype is MATRIX_L_PQ. This parameter is ignored if ntype is anything else.

Return Values

A 64-bit floating point value that contains the norm of input matrix.