numojo.routines.linalg.norms¶
Norms and other numbers (numojo.routines.linalg.norms)
This module provides functions for computing quantities related to linear algebra, such as determinants and traces.
Functions¶
det¶
Overload 1¶
Find the determinant of A using LUP decomposition.
Parameters:
dtype(DType)
Args:
A(NDArray)
Returns:
Scalar
Raises
Overload 2¶
Find the determinant of A using LUP decomposition.
Parameters:
dtype(DType)
Args:
A(Matrix)
Returns:
Scalar
Raises
trace¶
Overload 1¶
trace[dtype: DType](array: NDArray[dtype], offset: Int = 0, axis1: Int = 0, axis2: Int = 1) -> NDArray[dtype]
Computes the trace of a ndarray.
Parameters:
dtype(DType): Data type of the array.
Args:
array(NDArray): A NDArray.offset(Int): Offset of the diagonal from the main diagonal.axis1(Int): First axis.axis2(Int): Second axis.
Returns:
NDArray
Raises
Overload 2¶
Return the sum along diagonals of the array.
Similar to numpy.trace.
Parameters:
dtype(DType)
Args:
A(Matrix)offset(Int)
Returns:
Scalar
Raises