Package org.ejml.data

Class IGrowArray

java.lang.Object
org.ejml.data.IGrowArray

public class IGrowArray extends Object
An integer array which can have its size changed
  • Field Details

    • data

      public int[] data
    • length

      public int length
  • Constructor Details

    • IGrowArray

      public IGrowArray(int length)
    • IGrowArray

      public IGrowArray()
  • Method Details

    • length

      public int length()
    • reshape

      public void reshape(int length)
    • growInternal

      public void growInternal(int amount)
      Increases the internal array's length by the specified amount. Previous values are preserved. The length value is not modified since this does not change the 'meaning' of the array, just increases the amount of data which can be stored in it. this.data = new data_type[ data.length + amount ]
      Parameters:
      amount - Number of elements added to the internal array's length
    • setTo

      public void setTo(IGrowArray original)
    • get

      public int get(int index)
    • set

      public void set(int index, int value)
    • add

      public void add(int value)
    • clear

      public void clear()
    • free

      public void free()