BlockVector<T>.SetBlock Method

Replaces the block at the specified index.

Definition

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public void SetBlock(
	Vector<T> value,
	int index
)

Parameters

value  Vector<T>
The new vector for the block.
index  Int32
The zero-based index of the block.

Exceptions

ComponentReadOnlyException

The block vector is read-only.

ArgumentOutOfRangeException

index is less than zero or greater than or equal to the number of blocks in the block vector.

DimensionMismatchException

The length of value is different from the length of the current vector block.

See Also