oneflow.linalg

Common linear algebra operations.

Matrix Properties

norm

Returns the matrix norm or vector norm of a given tensor.

vector_norm

Computes a vector norm.

matrix_norm

Computes a matrix norm.

diagonal

Alias for oneflow.diagonal() with defaults dim1= -2, dim2= -1.

inv

Computes the inverse of a square matrix if it exists.

cross

Computes the cross product of two 3-dimensional vectors.

det

Computes the determinant of a square matrix.