CreateVectorSameAsT, TU(VectorTU, Int32) Method |
Create a new vector with the same kind of the provided example.
Namespace: Altaxo.Calc.LinearAlgebraAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic static Vector<T> SameAs<T, TU>(
Vector<TU> example,
int length
)
where T : struct, new(), IEquatable<T>, IFormattable
where TU : struct, new(), IEquatable<TU>, IFormattable
Parameters
- example VectorTU
- The example vector that determines the storage kind.
- length Int32
- The length of the vector to create.
Type Parameters
- T
- The element type of the vector to create.
- TU
- The element type of the example vector.
Return Value
VectorTThe created vector.
See Also