Matrix<T>.EnsureWritableUnchecked Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.8.0

Overload List

EnsureWritableUnchecked(Int32, Int32) Ensures that the element at the specified row and column can be written to.
EnsureWritableUnchecked(Int32, Int32, Int32, Int32) Ensures that the elements in the specified inclusive row and column ranges can be written to.

EnsureWritableUnchecked(Int32, Int32)

Ensures that the element at the specified row and column can be written to.
C#
public void EnsureWritableUnchecked(
	int row,
	int column
)

Parameters

row  Int32
The zero-based row index.
column  Int32
The zero-based column index.

Remarks

Coordinates are assumed valid and are not bounds-checked. Invalid input has unspecified behavior.

Exceptions

ComponentReadOnlyException The selected element cannot be made writable.

EnsureWritableUnchecked(Int32, Int32, Int32, Int32)

Ensures that the elements in the specified inclusive row and column ranges can be written to.
C#
public void EnsureWritableUnchecked(
	int startRow,
	int endRow,
	int startColumn,
	int endColumn
)

Parameters

startRow  Int32
The zero-based first row, included in the region.
endRow  Int32
The zero-based last row, included in the region.
startColumn  Int32
The zero-based first column, included in the region.
endColumn  Int32
The zero-based last column, included in the region.

Remarks

Both endpoints are included and are assumed valid. No bounds, ordering, or range validation is performed; invalid input has unspecified behavior.

A valid empty footprint succeeds for a mutable matrix without preparing or detaching storage. A valid empty footprint on a read-only matrix remains nonwritable.

Base preparation establishes value mutability and copy-on-write ownership. Representation overrides may reject compact intrinsic fixed geometry. Dynamic safe unchecked assignments can still fail after earlier mutations; use IsElementWritable(Int32, Int32) for an exact positional permission query.

Exceptions

ComponentReadOnlyException The matrix or a compactly identified intrinsic structural region cannot be made writable.

See Also