Constructs a new
BlockVectorT with the specified
length and non-zero elements.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Vector<T> CreateBanded<T>(
int length,
int startIndex,
int endIndex,
T[] values,
bool reuseComponentArray,
ArrayMutability mutability = ArrayMutability.Immutable
)
Public Shared Function CreateBanded(Of T) (
length As Integer,
startIndex As Integer,
endIndex As Integer,
values As T(),
reuseComponentArray As Boolean,
Optional mutability As ArrayMutability = ArrayMutability.Immutable
) As Vector(Of T)
public:
generic<typename T>
static Vector<T>^ CreateBanded(
int length,
int startIndex,
int endIndex,
array<T>^ values,
bool reuseComponentArray,
ArrayMutability mutability = ArrayMutability::Immutable
)
static member CreateBanded :
length : int *
startIndex : int *
endIndex : int *
values : 'T[] *
reuseComponentArray : bool *
?mutability : ArrayMutability
(* Defaults:
let _mutability = defaultArg mutability ArrayMutability.Immutable
*)
-> Vector<'T>
Parameters
- length
- Type: SystemInt32
The number of elements in the
new vector. - startIndex
- Type: SystemInt32
The index of the first non-zero component
of this vector. - endIndex
- Type: SystemInt32
The index of the last non-zero component
of this vector. - values
- Type: T
An array that contains the elements of the new
VectorT. - reuseComponentArray
- Type: SystemBoolean
Specifies whether the array
values should be used for the new vector's
internal storage. - mutability (Optional)
- Type: Extreme.MathematicsArrayMutability
Specifies how the vector's values may be changed.
The default is mutable values.
Type Parameters
- T
Return Value
Type:
VectorT
The non-zero elements of the vector are initialized to the values
contained in values. The first non-zero element,
at index startIndex, is set to the first element of
values.
Only the elements with index greater than or equal to
startIndex and less than or equal to endIndex
can be modified.
Reference