BlockVector<T>.SetBlock Method

Replaces the block at the specified index.

Definition

Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
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