This information is part of the Modelica Standard Library maintained by the Modelica Association.

# Matrices

Library of functions operating on matrices

## Package Contents

 LAPACKInterface to LAPACK library (should usually not directly be used but only indirectly via Modelica.Math.Matrices) balanceBalancing of matrix A to improve the condition of A detDeterminant of a matrix (computed by LU decomposition) eigenValueMatrixReturn real valued block diagonal matrix J of eigenvalues of matrix A (A=V*J*Vinv) eigenValuesCompute eigenvalues and eigenvectors for a real, nonsymmetric matrix equalityLeastSquaresSolve a linear equality constrained least squares problem expCompute the exponential of a matrix by adaptive Taylor series expansion with scaling and balancing integralExpComputation of the transition-matrix phi and its integral gamma integralExpTComputation of the transition-matrix phi and the integral gamma and gamma1 invInverse of a matrix (try to avoid, use function solve(..) instead) isEqualCompare whether two Real matrices are identical leastSquaresSolve overdetermined or underdetermined real system of linear equations A*x=b in a least squares sense (A may be rank deficient) LULU decomposition of square or rectangular matrix LU_solveSolve real system of linear equations P*L*U*x=b with a b vector and an LU decomposition (from LU(..)) LU_solve2Solve real system of linear equations P*L*U*X=B with a B matrix and an LU decomposition (from LU(..)) normReturns the norm of a matrix QRQR decomposition of a square matrix with column pivoting (A(:,p) = Q*R) rankRank of a matrix (computed with singular values) singularValuesCompute singular values and left and right singular vectors solveSolve real system of linear equations A*x=b with a b vector (Gaussian elemination with partial pivoting) solve2Solve real system of linear equations A*X=B with a B matrix (Gaussian elemination with partial pivoting) sortSort rows or columns of matrix in ascending or descending order