.Modelica_LinearSystems2.Math.Matrices.triangle

Information

Return the upper/lower triangular part of a square matrix

Interface

function triangle
  extends Modelica.Icons.Function;
  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-11-23T19:25:52Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos