functionfind_max
Finds the minimum (maximum) value of a vector
Extends from Icons.Function.
Information
1. Purpose of model
The function finds the maximum value of a vector.
2. Level of detail, physical effects considered, and physical insight
(Description)
3. Limits of validity
(Description)
4. Interfaces
(none)
5. Nomenclature
(no elements)
6. Governing Equations
(no equations)
7. Remarks for Usage
(none)
8. Validation
(no validation or testing necessary)
9. References
(none)
10. Version History
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[:] | vector | ||
| Real[:] | stateVector | ones(size(vector, 1)) | |
| Integer | cond | 1 | Only use items where statevector[i]=cond |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | index |