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

# Matrices

Library of functions operating on matrices

## Package Contents

LAPACK Interface to LAPACK library (should usually not directly be used but only indirectly via Modelica.Math.Matrices) | |

balance Balancing of matrix A to improve the condition of A | |

det Determinant of a matrix (computed by LU decomposition) | |

eigenValueMatrix Return real valued block diagonal matrix J of eigenvalues of matrix A (A=V*J*Vinv) | |

eigenValues Compute eigenvalues and eigenvectors for a real, nonsymmetric matrix | |

equalityLeastSquares Solve a linear equality constrained least squares problem | |

exp Compute the exponential of a matrix by adaptive Taylor series expansion with scaling and balancing | |

integralExp Computation of the transition-matrix phi and its integral gamma | |

integralExpT Computation of the transition-matrix phi and the integral gamma and gamma1 | |

inv Inverse of a matrix (try to avoid, use function solve(..) instead) | |

isEqual Compare whether two Real matrices are identical | |

leastSquares Solve overdetermined or underdetermined real system of linear equations A*x=b in a least squares sense (A may be rank deficient) | |

LU LU decomposition of square or rectangular matrix | |

LU_solve Solve real system of linear equations P*L*U*x=b with a b vector and an LU decomposition (from LU(..)) | |

LU_solve2 Solve real system of linear equations P*L*U*X=B with a B matrix and an LU decomposition (from LU(..)) | |

norm Returns the norm of a matrix | |

QR QR decomposition of a square matrix with column pivoting (A(:,p) = Q*R) | |

rank Rank of a matrix (computed with singular values) | |

singularValues Compute singular values and left and right singular vectors | |

solve Solve real system of linear equations A*x=b with a b vector (Gaussian elemination with partial pivoting) | |

solve2 Solve real system of linear equations A*X=B with a B matrix (Gaussian elemination with partial pivoting) | |

sort Sort rows or columns of matrix in ascending or descending order |