Home > Extreme Optimization Mathematics Library for .NET > Reference > Extreme.Mathematics.LinearAlgebra Namespace > Matrix Class > Methods


Extreme Optimization Mathematics Library for .NET

Matrix.IsComponentWritable Method 

Returns a value that indicates whether the value of the component at the specified row and column can be changed.

[Visual Basic]
Overridable Public Function IsComponentWritable( _
   ByVal row As Integer, _
   ByVal column As Integer _
) As Boolean
[C#]
public virtual bool IsComponentWritable(
   int row,
   int column
);

Parameters

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

Return Value

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 thiss, you can call this method before you attempt to set the component to verify that it can be changed.

See Also

Matrix Class | Extreme.Mathematics.LinearAlgebra Namespace | ComponentReadOnlyException | Item