Vector<T>.EnsureWritableUnchecked Method

Definition

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

Overload List

EnsureWritableUnchecked(Int32) Ensures that the element at the specified index in the vector can be written to.
EnsureWritableUnchecked(Range) Ensures that the element at the specified index in the vector can be written to.
EnsureWritableUnchecked(Int32, Int32) Ensures that the elements at and between the specified indexes in the vector can be written to.

EnsureWritableUnchecked(Int32)

Ensures that the element at the specified index in the vector can be written to.
C#
public void EnsureWritableUnchecked(
	int index
)

Parameters

index  Int32
 

Remarks

The index is assumed valid and is not bounds-checked. Invalid input has unspecified behavior.

Exceptions

ComponentReadOnlyException

The selected element of the vector is read-only.

EnsureWritableUnchecked(Range)

Ensures that the element at the specified index in the vector can be written to.
C#
public void EnsureWritableUnchecked(
	Range range
)

Parameters

range  Range
 

Remarks

The range is assumed valid and is not validated. Invalid input has unspecified behavior. Mutability, structure, copy-on-write, and representation invariants remain enforced.

Exceptions

ComponentReadOnlyException

One or more of the selected elements of the vector is read-only.

EnsureWritableUnchecked(Int32, Int32)

Ensures that the elements at and between the specified indexes in the vector can be written to.
C#
public void EnsureWritableUnchecked(
	int startIndex,
	int endIndex
)

Parameters

startIndex  Int32
The index of the first element to prepare.
endIndex  Int32
The index of the last element to prepare. This element is included.

Remarks

The endpoints are assumed valid and are not validated. Invalid input has unspecified behavior. A writable empty range succeeds without detaching storage; a read-only empty range remains nonwritable.

Exceptions

ComponentReadOnlyException

One or more of the selected elements of the vector is read-only.

See Also