Programming Reference for VirtualLab Fusion
2025.1
|
This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
Class to encapsulate an array of objects of type ComplexField.
More...
Public Member Functions | |
void | AddRange (ComplexFieldArray arrayToAdd) |
Adds a range of complex fields, provided by another ComplexFieldArray, to this. | |
ComplexFieldArray () | |
Default constructor. Creates an empty array of length 1. | |
ComplexFieldArray (ComplexField[] array) | |
Constructor that gets an array of equally sized ComplexField objects. | |
ComplexFieldArray (ComplexFieldArray array) | |
Copy constructor. | |
ComplexFieldArray (long length) | |
Constructor that creates an empty array of a given length. | |
ComplexFieldArray (long length, Vector sampling, bool isComplex, PrecisionMode precision=PrecisionMode.Double) | |
Constructor that creates an empty array of a given length where all member fields have the given sampling. | |
ComplexField[] | ToArray (bool cloneFields=true) |
Returns this class as array of ComplexField. | |
Properties | |
int | Length [get] |
Gets the length of the array. | |
Vector | SamplingPoints [get] |
Gets the number of SamplingPoints in x and y. Returns (0,0) for an empty array. | |
ComplexField | this[long index] [get, set] |
Indexer to get or set a contained ComplexField object. | |
This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
Class to encapsulate an array of objects of type ComplexField.
ComplexFieldArray | ( | ComplexField[] | array | ) |
Constructor that gets an array of equally sized ComplexField objects.
array | One or more ComplexField objects or an array of ComplexField objects. The fields are cloned. |
ComplexFieldArray | ( | ComplexFieldArray | array | ) |
Copy constructor.
array | ComplexFieldArray to copy |
ComplexFieldArray | ( | long | length | ) |
Constructor that creates an empty array of a given length.
length | Length of the array to create. |
ComplexFieldArray | ( | long | length, |
Vector | sampling, | ||
bool | isComplex, | ||
PrecisionMode | precision = PrecisionMode::Double |
||
) |
Constructor that creates an empty array of a given length where all member fields have the given sampling.
length | Length of the array |
sampling | The sampling of the member fields. |
isComplex | Are the member fields complex or not? |
precision | Optional precision of the new complex fields. (Double precision by default.) |
void AddRange | ( | ComplexFieldArray | arrayToAdd | ) |
Adds a range of complex fields, provided by another ComplexFieldArray, to this.
arrayToAdd | ComplexFieldArray to get the complex fields to add from |
ComplexField[] ToArray | ( | bool | cloneFields = true | ) |
Returns this class as array of ComplexField.
cloneFields | If this optional parameter is set to false , references to the original fields are returned instead of copies. |
|
getset |
Indexer to get or set a contained ComplexField object.
index | Index to access |