Linear algebra Functions

det(M)
Determinant of square Matrix M
Parameters:

M (array) – An Array in square matrix form

Return type:

float

eigenvals(M)
Eigenvalues of the square matrix M
Parameters:

M (array) – An Array in square matrix form

Return type:

float

eigenvecs(M)
Normalized eigenvectors of M, in columns, in the order of eigenvals
Parameters:

M (array) – An Array in square matrix form

Return type:

float

lsolve(M, b)
solution x of M·x = b, least squares if M is singular or not square
Parameters:
  • M (array) – An Array in square matrix form

  • b (array) – An array in vector form

Return type:

array

norm(A)
Euclidean norm of a vector, Frobenius norm of a matrix
Parameters:

A (array) – An Array

Return type:

float

rank(A)
rank of the matrix M
Parameters:

M (array) – An Array in matrix form

Return type:

float

tr(M)
Trace of the square Matrix M
Parameters:

M (array) – An Array in matrix form

Return type:

float