Enumerates the possible reasons for how an object will be used.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
Public Enumeration Intent
| Member name | Value | Description |
---|
| Inherit | 0 |
Return an array with the same mutability as the array from which
it was derived. This is the default.
|
| ReadOnly | 1 |
Return a read-only array that may be a live view or a copy.
The result depends on the default mutability behaviour
and the type of array.
|
| ReadOnlyCopy | 2 |
The array's values cannot be modified in any way.
|
| ReadOnlyView | 3 |
Return an array that is a live view of the parent array's values
that cannot be written to.
|
| WritableCopy | 4 |
Return a writable copy of the array. Changing values will not
affect the parent object's values.
Actual copying may be delayed until the array is written to.
|
| WritableView | 5 |
Return an array that is a live view of the parent array's values.
Changing values also changes values in the parent array.
|
Use the ArrayMutability enumeration to specify the intended use of an object or parameter.
Passing objects or creating references to objects (such as rows or columns of matrices)
can be expensive if it is not known in advance how the object or reference will be used.
Conversely, having this knowledge enables certain optimizations.
Reference