Contents

la_normalized_vector(_:_:)

Declaration

func la_normalized_vector(_ vector: la_object_t, _ vector_norm: la_norm_t) -> la_object_t

Discussion

“Normalizes” a vector or matrix.

The returned object has the same direction as the first operand, and has norm 1 in the specified vector norm. If the input vector is zero, it cannot be meaningfully normalized and the returned object is also zero. If the parameter vector is not a vector or matrix, or if the vector_norm parameter is not a supported value, the returned object has status LA_INVALID_PARAMETER_ERROR.

See Also

Functions