DoubleArray#
- Usage:
DoubleArray Class API Wrapper
- class DoubleArray[source]#
Bases:
objectWrapper for DoubleArray class of Moldflow Synergy.
- add_double(value)[source]#
Add a double value to the array.
- Parameters:
value (float) – The value to add.
- Return type:
None
- from_list(values)[source]#
Convert a list of floats to a double array.
- Parameters:
values (list[float]) – The list of floats to convert.
- Returns:
The number of elements added to the array.
- Return type:
int
- property size: int#
Get the size of the array.
- Returns:
The size of the array.
- Return type:
int
- to_list()[source]#
Convert the double array to a list of floats.
- Returns:
The list of floats.
- Return type:
list[float]
- val(index)[source]#
Get the value at the specified index.
- Parameters:
index (int) – The index of the value to get.
- Returns:
The value at the specified index.
- Return type:
float