public class PuData
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
PuData() |
Modifier and Type | Method and Description |
---|---|
static boolean[] |
copy(boolean[] arrDest,
boolean[] arrSrc)
Copy an array into an array, and do not adjust size of destination array.
|
static double[] |
copy(double[] arrDest,
double[] arrSrc)
Copy an array into an array, and do not adjust size of destination array.
|
static double[] |
copy(double[] data,
int size)
Copy an array into a new array.
|
static float[] |
copy(float[] arrDest,
float[] arrSrc)
Copy an array into an array, and do not adjust size of destination array.
|
static float[] |
copy(float[] data,
int size)
Copy an array into a new array.
|
static int[] |
copy(int[] data,
int size)
Copy an array into a new array.
|
static int[] |
copy(int[] arrDest,
int[] arrSrc)
Copy an array into an array, and do not adjust size of destination array.
|
static void |
invert(java.lang.Object[] data)
Invert order of all entries, i.e. the first entry becomes the last entry.
|
static boolean[] |
realloc(boolean[] data,
int size)
Create a new array with given size, if size is different than given array.
|
static boolean[] |
realloc(boolean[] data,
int size,
boolean initial)
Create a new array with given size, if size is different than given array.
|
static java.lang.Object[] |
realloc(java.lang.Class cl,
java.lang.Object[] data,
int size)
Create a new array with given size, if size is different than given array.
|
static double[] |
realloc(double[] data,
int size)
Create a new array with given size, if size is different than given array.
|
static double[] |
realloc(double[] data,
int size,
double initial)
Create a new array with given size, if size is different than given array.
|
static float[] |
realloc(float[] data,
int size)
Create a new array with given size, if size is different than given array.
|
static float[] |
realloc(float[] data,
int size,
float initial)
Create a new array with given size, if size is different than given array.
|
static int[] |
realloc(int[] data,
int size)
Create a new array with given size, if size is different than given array.
|
static int[] |
realloc(int[] data,
int size,
int initial)
Create a new array with given size, if size is different than given array.
|
static java.lang.String[] |
realloc(java.lang.String[] data,
int size)
Create a new array with given size, if size is different than given array.
|
static java.lang.String[] |
realloc(java.lang.String[] data,
int size,
java.lang.String initial)
Create a new array with given size, if size is different than given array.
|
static java.lang.String |
toString(double[] data)
Deprecated.
use jv.number.PuString#toString(double [])
|
static java.lang.String |
toString(float[] data)
Deprecated.
use jv.number.PuString#toString(float [])
|
static java.lang.String |
toString(int[] data)
Deprecated.
use jv.number.PuString#toString(int [])
|
public static java.lang.String toString(double[] data)
data
- array of double number to be printed.public static java.lang.String toString(float[] data)
data
- array of float number to be printed.public static java.lang.String toString(int[] data)
data
- array of integer number to be printed.public static double[] copy(double[] data, int size)
data
- source arraysize
- size of new array, must be less or equal data.lengthpublic static float[] copy(float[] data, int size)
data
- source arraysize
- size of new array, must be less or equal data.lengthpublic static int[] copy(int[] data, int size)
data
- source arraysize
- size of new array, must be less or equal data.lengthpublic static double[] copy(double[] arrDest, double[] arrSrc)
arrDest
- destination array, maybe null.arrSrc
- source arrayPdVector.copy(int, jv.vecmath.PdVector, int, int)
public static float[] copy(float[] arrDest, float[] arrSrc)
arrDest
- destination array, maybe null.arrSrc
- source arrayPdVector.copy(int, jv.vecmath.PdVector, int, int)
public static int[] copy(int[] arrDest, int[] arrSrc)
arrDest
- destination array, maybe null.arrSrc
- source arrayPiVector.copy(int, jv.vecmath.PiVector, int, int)
public static boolean[] copy(boolean[] arrDest, boolean[] arrSrc)
arrDest
- destination array, maybe null.arrSrc
- source arrayPiVector.copy(int, jv.vecmath.PiVector, int, int)
public static java.lang.Object[] realloc(java.lang.Class cl, java.lang.Object[] data, int size)
The effect is that of the equivalent array creation expression:
new cl[size]
and copying of existing data into this new array.
cl
- class of objects in data array.data
- source array, may be null.size
- size of new arraypublic static double[] realloc(double[] data, int size)
data
- source array, may be null.size
- size of new arraypublic static float[] realloc(float[] data, int size)
data
- source array, may be null.size
- size of new arraypublic static int[] realloc(int[] data, int size)
data
- source array, may be null.size
- size of new arraypublic static boolean[] realloc(boolean[] data, int size)
data
- source array, may be null.size
- size of new arraypublic static java.lang.String[] realloc(java.lang.String[] data, int size)
data
- source array, may be null.size
- size of new arraypublic static double[] realloc(double[] data, int size, double initial)
data
- source array, may be null.size
- size of new arrayinitial
- initial value of new components.public static float[] realloc(float[] data, int size, float initial)
data
- source array, may be null.size
- size of new arrayinitial
- initial value of new components.public static int[] realloc(int[] data, int size, int initial)
data
- source array, may be null.size
- size of new arrayinitial
- initial value of new components.public static boolean[] realloc(boolean[] data, int size, boolean initial)
data
- source array, may be null.size
- size of new arrayinitial
- initial value of new components.public static java.lang.String[] realloc(java.lang.String[] data, int size, java.lang.String initial)
data
- source array, may be null.size
- size of new arrayinitial
- initial value of new components.public static void invert(java.lang.Object[] data)
data
- source array, may be null."