List Vector<T>.Flatten Method
Gets a vector containing all flattened elements in order.
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.2.0
C#
A vector containing all elements from all lists in sequential order.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.2.0
public Vector<T> Flatten()Return Value
Vector<T>A vector containing all elements from all lists in sequential order.
Remarks
This method returns a view over the internal storage, not a copy. The flattened vector contains all elements in the order they appear in the lists: first all elements from list 0, then all from list 1, and so on.
To reconstruct the list structure from the flattened vector, use the Grouping property.