.Modelica_LinearSystems2.Math.Matrices.triangle

Information

Return the upper/lower triangular part of a square matrix

Interface

function triangle
  import Modelica_LinearSystems2.Math.Matrices;
  input Real A[:, size(A, 1)] "Square matrix";
  input Boolean upper = true "True for upper triangle to return";
  output Real Tri[size(A, 1), size(A, 2)] "Triangular matrix";
end triangle;

Generated at 2024-04-28T18:16:21Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos