BlockVector<T>.IsElementWritable Method

Returns a value that indicates whether the value of the component at the specified index can be changed.

Definition

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public override bool IsElementWritable(
	int index
)

Parameters

index  Int32
Zero-based index of the component.

Return Value

Boolean
true if you can change the value of this component; otherwise false.

Remarks

If you attempt to set a component 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 component to verify that it can be changed.

See Also