BlockVector<T> Constructor

Definition

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

Overload List

BlockVector<T>(Int32) Constructs a new BlockVector<T> with the specified length and non-zero range.
BlockVector<T>(Vector<T>[]) Constructs a new BlockVector<T> from an array of vectors.
BlockVector<T>(Int32, Int32) Constructs a new BlockVector<T> with the specified length and non-zero range.
BlockVector<T>(Vector<T>, Int32, Intent) Constructs a new BlockVector<T> with the specified length and non-zero range.

BlockVector<T>(Int32)

Constructs a new BlockVector<T> with the specified length and non-zero range.
C#
public BlockVector(
	int length
)

Parameters

length  Int32
The length of the new BlockVector<T>.

Exceptions

ArgumentOutOfRangeException

length is less than zero.

BlockVector<T>(Vector<T>[])

Constructs a new BlockVector<T> from an array of vectors.
C#
public BlockVector(
	params Vector<T>[] blocks
)

Parameters

blocks  Vector<T>[]
An array of vectors.

Exceptions

ArgumentNullException

blocks is null.

ArgumentException

One or more of the elements of blocks is null.

BlockVector<T>(Int32, Int32)

Constructs a new BlockVector<T> with the specified length and non-zero range.
C#
public BlockVector(
	int length,
	int blockSize
)

Parameters

length  Int32
The length of the new BlockVector<T>.
blockSize  Int32
The length of each block.

Exceptions

ArgumentOutOfRangeException

length is less than zero.

-or-

blockSize is less than or equal to zero.

BlockVector<T>(Vector<T>, Int32, Intent)

Constructs a new BlockVector<T> with the specified length and non-zero range.
C#
public BlockVector(
	Vector<T> original,
	int blockSize,
	Intent intent
)

Parameters

original  Vector<T>
The vector to convert to a block vector.
blockSize  Int32
The block size.
intent  Intent
An Intent value that specifies how the new vector will be used.

Exceptions

ArgumentOutOfRangeException

blockSize is less than or equal to zero.

See Also