public class CoerceUtil
extends java.lang.Object
public int length() {
return lengths.length()
}
public int length(int i0) {
return lengths.value(i0);
}
| Constructor and Description |
|---|
CoerceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static WritableDataSet |
coerce(QDataSet ds1,
QDataSet ds2,
boolean createResult,
QDataSet[] operands)
increase rank of datasets so that element-wise operations can be performed.
|
static boolean |
equalGeom(QDataSet ds1,
QDataSet ds2)
returns true if two datasets have the same number of elements in each dimension.
|
static QDataSet |
increaseRank0(QDataSet ds,
QDataSet ds2)
increase the rank of a rank zero dataset by adding join dimensions that repeat the lower rank elements.
|
static QDataSet |
increaseRank1(QDataSet ds,
QDataSet ds2)
increase the rank of a rank one dataset by adding join dimensions that repeat the lower rank elements.
|
static QDataSet |
increaseRank2(QDataSet ds,
QDataSet ds2)
increase the rank of a rank two dataset by adding join dimensions that repeat the lower rank elements.
|
public static boolean equalGeom(QDataSet ds1, QDataSet ds2)
ds1 - ds2 - public static WritableDataSet coerce(QDataSet ds1, QDataSet ds2, boolean createResult, QDataSet[] operands)
ds1 - the first operandds2 - the second operandcreateResult - if true, then a dataset is created where the result can be installed.operands - the array in which the promoted operands are inserted.public static QDataSet increaseRank0(QDataSet ds, QDataSet ds2)
ds - a rank 0 datasetds2 - dataset to provide rank and lengths.public static QDataSet increaseRank1(QDataSet ds, QDataSet ds2)
ds - a rank 1 dataset to provide values and propertiesds2 - dataset to provide rank and lengths.public static QDataSet increaseRank2(QDataSet ds, QDataSet ds2)
ds - a rank 2 dataset to provide values and propertiesds2 - dataset to provide rank and lengths.