ones

ones( int len0 ) → QDataSet

return new dataset filled with ones.

Parameters

len0 - the length of the first index.

Returns:

dataset filled with ones.

[search for examples] [view on GitHub] [view on old javadoc] [view source]

ones( int len0, int len1 ) → QDataSet
ones( int len0, int len1, int len2 ) → QDataSet
ones( int len0, int len1, int len2, int len3 ) → QDataSet

or

or( QDataSet ds1, QDataSet ds2 ) → QDataSet

element-wise logical or function. returns 1 where ds1 is non-zero or ds2 is non-zero. Note that or(fill,1) is currently fill, not 1, as are all binary operators.

Parameters

ds1 - a QDataSet
ds2 - a QDataSet

Returns:

a QDataSet

See Also:

bitwiseOr(QDataSet, QDataSet)


[search for examples] [view on GitHub] [view on old javadoc] [view source]

or( Object ds1, Object ds2 ) → QDataSet

outerProduct

outerProduct( QDataSet ds1, QDataSet ds2 ) → QDataSet

returns outerProduct of two rank 1 datasets, a rank 2 dataset with elements R[i,j]= ds1[i] * ds2[j].

Parameters

ds1 - rank 1 dataset length m.
ds2 - rank 1 dataset of length n.

Returns:

rank 2 dataset that is m by n.

[search for examples] [view on GitHub] [view on old javadoc] [view source]

outerProduct( Object ds1, Object ds2 ) → QDataSet

outerSum

outerSum( QDataSet ds1, QDataSet ds2 ) → QDataSet

returns outerSum of two rank 1 datasets, a rank 2 dataset with elements R[i,j]= ds1[i] + ds2[j].

Parameters

ds1 - a rank 1 dataset of length m
ds2 - a rank 1 dataset of length n

Returns:

a rank 2 dataset[m,n]

[search for examples] [view on GitHub] [view on old javadoc] [view source]

outerSum( Object ds1, Object ds2 ) → QDataSet