public override IntArray Clone(IntArrayBits bitsPerItem, IntArrayType type) { return(IntArray.New(_length, type, bitsPerItem, this)); }
/// <summary> /// Clone an IntArray containing only the items indexed by <paramref name="itemIndices"/> /// </summary> /// <param name="itemIndices"> item indices will be contained in the cloned IntArray </param> /// <returns> The cloned IntArray </returns> public override IntArray Clone(int[] itemIndices) { return(IntArray.New(itemIndices.Length, IntArrayType.Dense, BitsPerItem, itemIndices.Select(x => this[x]))); }