CreateVectorSameAsT, TU(VectorTU) Method |
Create a new vector with the same kind and dimension 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
)
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 and size.
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