MatrixView<T>.IsElementWritable Method

Gets whether the value of the element at the specified row and column can be changed.

Definition

Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
public override bool IsElementWritable(
	int row,
	int column
)

Parameters

row  Int32
The zero-based row index of the element to get or set.
column  Int32
The zero-based column index of the element to get or set.

Return Value

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

Remarks

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

See Also