/// <summary> /// This returns a read and writeable vector of a <see cref="DoubleColumn" /> /// </summary> /// <param name="col">The column to wrap as a IVector.</param> /// <param name="selectedRows">The indices of the rows to use for the vector.</param> /// <returns>An IVector wrapping the <see cref="DoubleColumn" />.</returns> public static IVector ToVector(DoubleColumn col, IAscendingIntegerCollection selectedRows) { return(new DoubleColumnSelectedRowsToVectorWrapper(col, (IAscendingIntegerCollection)selectedRows.Clone())); }
/// <summary> /// This returns a read and writeable vector of a <see cref="DoubleColumn" /> /// </summary> /// <param name="col">The column to wrap as a IVector.</param> /// <param name="selectedRows">The indices of the rows to use for the vector.</param> /// <returns>An IVector wrapping the <see cref="DoubleColumn" />.</returns> public static IVector ToVector(this DoubleColumn col, IAscendingIntegerCollection selectedRows) { return new DoubleColumnSelectedRowsToVectorWrapper(col, (IAscendingIntegerCollection)selectedRows.Clone()); }
/// <summary> /// This returns a read-only vector of a <see cref="INumericColumn" /> for selected rows. /// </summary> /// <param name="col">The column to wrap as a IVector.</param> /// <param name="selectedRows">The rows of the source column that are part of the vector.</param> /// <returns>An IROVector wrapping the <see cref="INumericColumn" />.</returns> public static IROVector ToROVector(INumericColumn col, IAscendingIntegerCollection selectedRows) { return(new NumericColumnSelectedRowsToROVectorWrapper(col, (IAscendingIntegerCollection)selectedRows.Clone())); }
/// <summary> /// This returns a read-only vector of a <see cref="INumericColumn" /> for selected rows. /// </summary> /// <param name="col">The column to wrap as a IVector.</param> /// <param name="selectedRows">The rows of the source column that are part of the vector.</param> /// <returns>An IROVector wrapping the <see cref="INumericColumn" />.</returns> public static IROVector ToROVector(this INumericColumn col, IAscendingIntegerCollection selectedRows) { return new NumericColumnSelectedRowsToROVectorWrapper(col, (IAscendingIntegerCollection)selectedRows.Clone()); }