Package org.ejml.data
Class IGrowArray
- java.lang.Object
-
- org.ejml.data.IGrowArray
-
public class IGrowArray extends java.lang.ObjectAn integer array which can have its size changed
-
-
Constructor Summary
Constructors Constructor Description IGrowArray()IGrowArray(int length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfree()intget(int index)voidgrowInternal(int amount)Increases the internal array's length by the specified amount.intlength()voidreshape(int length)voidset(int index, int value)voidset(IGrowArray original)
-
-
-
Method Detail
-
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
-
set
public void set(IGrowArray original)
-
get
public int get(int index)
-
set
public void set(int index, int value)
-
free
public void free()
-
-