Linear Algebra

Matrix and vector products

dpnp.cross

Return the cross product of two (arrays of) vectors.

dpnp.dot

Returns the dot product of x1 and x2.

dpnp.linalg.multi_dot

Compute the dot product of two or more arrays in a single function call

dpnp.vdot

Return the dot product of two vectors.

dpnp.inner

Returns the inner product of two arrays.

dpnp.outer

Returns the outer product of two arrays.

dpnp.matmul

Matrix product of two arrays.

dpnp.tensordot

Compute tensor dot product along specified axes.

dpnp.einsum

Evaluates the Einstein summation convention on the operands.

dpnp.einsum_path

Evaluates the lowest cost contraction order for an einsum expression by considering the creation of intermediate arrays.

dpnp.linalg.matrix_power

Raise a square matrix to the (integer) power count.

dpnp.kron

Returns the kronecker product of two arrays.

Decompositions

dpnp.linalg.cholesky

Cholesky decomposition.

dpnp.linalg.qr

Compute the qr factorization of a matrix.

dpnp.linalg.svd

Singular Value Decomposition.

Matrix eigenvalues

dpnp.linalg.eig

Compute the eigenvalues and right eigenvectors of a square array.

dpnp.linalg.eigvals

Compute the eigenvalues of a general matrix.

Norms etc.

dpnp.linalg.det

Compute the determinant of an array.

dpnp.linalg.norm

Matrix or vector norm.

dpnp.linalg.matrix_rank

Return matrix rank of array Rank of the array is the number of singular values of the array that are greater than tol.

dpnp.trace

Return the sum along diagonals of the array.

Solving linear equations

dpnp.linalg.inv

Divide arguments element-wise.

Special Matrices

dpnp.tri

An array with ones at and below the given diagonal and zeros elsewhere.

dpnp.tril

Lower triangle of an array.

dpnp.triu

Upper triangle of an array.