.BuildSysPro.Utilities.Math.findValue

Information

Hypothesis and equations

findValue return the first index of a value in a vector.

Bibliography

none

Instructions for use

Example :

x={1,4,4} and val=4, then findValue(x,val) returns 2

Known limits / Use precautions

none

Validations

Validated function - Gilles Plessis 02/2011

--------------------------------------------------------------
Licensed by EDF under a 3-clause BSD-license
Copyright © EDF 2009 - 2023
BuildSysPro version 3.6.0
Author : Gilles PLESSIS, EDF (2011)
--------------------------------------------------------------

Interface

function findValue
  input Real[:] x "Input vector";
  input Real val "Value to seek";
  output Integer index "Index of the value in the vector";
end findValue;

Generated at 2024-11-26T19:26:15Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos