public static interface VECTOR.SparseDoubleArray extends VECTOR.SparseArray
| Modifier and Type | Method and Description |
|---|---|
static VECTOR.SparseDoubleArray |
fromDenseArray(double[] denseArray)
Creates a SparseDoubleArray that stores only the non-zero values of a
double array.
|
static VECTOR.SparseDoubleArray |
of(int length,
int[] indices,
double[] doubleValues)
Creates a SparseDoubleArray of the given length, indices, and values.
|
double[] |
values()
Returns the non-zero values in the VECTOR data represented by this
SparseDoubleArray.
|
indices, length, toStringdouble[] values()
Returns the non-zero values in the VECTOR data represented by this
SparseDoubleArray. The values returned by this method appear at the
indices returned by the VECTOR.SparseArray.indices() method.
The array returned by this method may be one that backs this SparseArray. Modifying the array's values can modify the set of non-zero values retained by this SparseArray.
static VECTOR.SparseDoubleArray of(int length, int[] indices, double[] doubleValues)
Creates a SparseDoubleArray of the given length, indices, and values. The SparseDoubleArray retains a reference to the arrays of indices and values which are passed to this method. After this method returns, changing the values of these arrays will also change the values retained by the SparseDoubleArray.
This method will only perform lightweight validations on the input. It will not validate the order or range of values in the indices array. These more extensive validations will occur when the SparseDoubleArray is set as a parameter in SQL executed by Oracle Database.
length - Total length of the SparseDoubleArray, including indices
with the value of zero.indices - Indices of non-zero values, ordered from least to
greatest, in the range of 0 (inclusive) and the given
length(exclusive). Not null.doubleValues - Non-zero values appearing at each of the given
indices. Not null.java.lang.NullPointerException - If the indices or values are null.java.lang.IllegalArgumentException - If the length is less than 0, or the
indices or values have a length greater than 65535, or the indices and
values have a different length.static VECTOR.SparseDoubleArray fromDenseArray(double[] denseArray)
denseArray - Array of double values, including zeros. Not null.java.lang.NullPointerException - If the denseArray is null.