Sets the vector component at the specified position to the specified value.
Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Overrides Sub SetValue ( _ value As Double, _ index As Integer _ ) |
| C# |
|---|
public override void SetValue ( double value, int index ) |
| C++ |
|---|
public: virtual void SetValue ( double value, int index ) override |
Parameters
- value (System.Double)
- A Double specifying the new value of the component.
- index (System.Int32)
- The zero-based index of the component.
Return Value
The component of the Vector in the indexth position.
Remarks
This method does not perform bounds checking. It is provided
for optimized access in situations where the argument is known to be
within bounds. If the argument is outside its valid range, the result
may be unpredictable.
Depending on the type of matrix, some components may not be writeable. In this case, an ComponentReadOnlyException is thrown. You can call the IsComponentWritable(Int32) method to find out if a specific component is writeable.