FrameViewAsColumnsT Method

Exposes a list of columns of uniform type.

Definition

Namespace: Meta.Numerics.Data
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public IReadOnlyList<IReadOnlyList<T>> AsColumns<T>()

Type Parameters

T
The type of the data.

Return Value

IReadOnlyListIReadOnlyListT
A column-oriented, read-only collection of all the data in the view.

Remarks

Some methods, such as MeansClustering(IReadOnlyListIReadOnlyListDouble, Int32) and PrincipalComponentAnalysis(IReadOnlyListIReadOnlyListDouble), require their inputs as column-oriented array of uniform type. This method exposes the view as such a collection.

Remarks

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.

See Also