.TransiEnt.Basics.Functions.findAll

Information

1. Purpose of model

Finds all occurences of e in a given vector v and returns the positions. This is a modified version of Modelica.Math.Vectors.find.

2. Level of detail, physical effects considered, and physical insight

(no remarks)

3. Limits of validity

(no remarks)

4. Interfaces

(no remarks)

5. Nomenclature

(no remarks)

6. Governing Equations

(no remarks)

7. Remarks for Usage

(no remarks)

8. Validation

(no validation necessary)

9. References

(none)

10. Version History

Model created by Carsten Bode (c.bode@tuhh.de), Nov 2018

Interface

function findAll
  extends TransiEnt.Basics.Icons.Function;
  input Real e "Search for e";
  input Real v[:] "Real vector";
  input Real eps(min = 0) = 0 "Element e is equal to a element v[i] of vector v if abs(e-v[i]) <= eps";
  output Integer result[:] "all occurrences of e; result=0, if not found";
end findAll;

Generated at 2024-11-21T19:25:40Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos