FrameView.AsColumns<T> Method |
Namespace: Meta.Numerics.Data
Some methods, such as MeansClustering(IReadOnlyList<IReadOnlyList<Double> > , Int32) and PrincipalComponentAnalysis(IReadOnlyList<IReadOnlyList<Double>>), require their inputs as column-oriented array of uniform type. This method exposes the view as such a collection.
This operation is both time and memory efficient. It does not copy every element into a new collection, but instead simply instantiates a converter that implements the list operations directly against the already existing storage.