CreateVectorSameAsT(MatrixT, VectorT, Int32) Method |
Create a new vector with a type that can represent and is closest to both provided samples.
Namespace: Altaxo.Calc.LinearAlgebraAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic static Vector<T> SameAs<T>(
Matrix<T> matrix,
Vector<T> vector,
int length
)
where T : struct, new(), IEquatable<T>, IFormattable
Parameters
- matrix MatrixT
- The example matrix.
- vector VectorT
- The example vector.
- length Int32
- The length of the vector to create.
Type Parameters
- T
- The element type of the vector.
Return Value
VectorTThe created vector.
See Also