ComposedComplexVector<T>.TryEnsureWritableUnchecked Method

Definition

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

Overload List

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

TryEnsureWritableUnchecked(Int32)

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

Parameters

index  Int32
 

Return Value

Boolean

true if the operation succeeded; otherwise false.

Remarks

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

TryEnsureWritableUnchecked(Int32, Int32)

Ensures that the elements at and between the specified indexes in the vector can be written to.
C#
public override bool TryEnsureWritableUnchecked(
	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.

Return Value

Boolean

true if the operation succeeded; otherwise false.

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.

See Also