Example #1
0
 public override IntArray Clone(IntArrayBits bitsPerItem, IntArrayType type)
 {
     return(IntArray.New(_length, type, bitsPerItem, this));
 }
Example #2
0
 /// <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])));
 }