Dense Vector<T, TStorage>.Is Element Writable Method
Gets whether the value of the element at
the specified index can be changed.
Definition
Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
true if you can change the value of this element; otherwise false.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public override bool IsElementWritable(
int index
)
Parameters
- index Int32
- Zero-based index of the element.
Return Value
Booleantrue if you can change the value of this element; otherwise false.
Remarks
If you attempt to set a element that is read-only, an exception of type ComponentReadOnlyException is thrown. To avoid this, you can call this method before you attempt to set the element to verify that it can be changed.