.Modelica.Math.Vectors

Information

Library content

This library provides functions operating on vectors:

See also

Matrices

Contents

NameDescription
toStringConvert a real vector in to a string representation
isEqualDetermine if two Real vectors are numerically identical
normReturn the p-norm of a vector
lengthReturn length of a vector (better as norm(), if further symbolic processing is performed)
normalizeReturn normalized vector such that length = 1 and prevent zero-division for zero vector
normalizeWithAssertReturn normalized vector such that length = 1 (trigger an assert for zero vector)
reverseReverse vector elements (e.g., v[1] becomes last element)
sortSort elements of vector in ascending or descending order
findFind element in a vector
interpolateInterpolate linearly in a vector
relNodePositionsReturn vector of relative node positions (0..1)

Generated at 2024-04-18T18:15:58Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos