Enumerates the possible reasons for how an object will be used.
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Enumeration Intent |
| C# |
|---|
public enum Intent |
| C++ |
|---|
public enum class Intent |
Members
| Member | Description |
|---|---|
| ReadOnly |
The object is not modified.
The components of the subvector or matrix are only read.
|
| Writable |
The object may be intentionally modified.
The components of the subvector or matrix may be written to,
changing the original data. When applied to a parameter, this value indicates
that the method is intended to have a side-effect on the parameter.
|
| Copy |
A copy of the object should be created.
The subvector or matrix is a copy of the data.
|
| Destroy |
Equivalent to Copy when used with the IntentAttribute.
It indicates that the original contents of a parameter may be destroyed.
|
Remarks
Use the Intent 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.