.Modelica_LinearSystems2.Internal.numberOfRealZeros

Information

Syntax

     Matrices.numberOfRealZeros(complexVector);

Description

Function numberOfRealZeros(..) determines the number of elements of vector "complexVector" with vanishing imaginary part, i.e., complexVector[i].im = 0.

Example

  // c = {0; 1+2*j; 1-2*j; 2; -3; -1-j; -1+j};
  result = Matrices.numberOfRealZeros(c);
           -> result = 3;

Interface

function numberOfRealZeros
  import Modelica_LinearSystems2.Math.Complex;
  input Complex complexVector[:] "Complex vector";
  output Integer result "Number of elements of v with v.im = 0";
end numberOfRealZeros;

Generated at 2020-04-02T01:37:38Z by OpenModelicaOpenModelica 1.16.0~dev-259-g8a5138f using GenerateDoc.mos