## 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

ones( int len0, int len1 ) → QDataSet

return a rank two dataset filled with ones. This is currently mutable, but future versions may not be.

### Parameters

len0 - the length of the first index.
len1 - the length of the second index.

### Returns:

dataset filled with ones.
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## ones

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

return new dataset filled with ones.

### Parameters

len0 - the length of the first index.
len1 - the length of the second index.
len2 - the length of the third index.

### Returns:

dataset filled with ones.
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## ones

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

return new dataset filled with ones.

### Parameters

len0 - the length of the first index.
len1 - the length of the second index.
len2 - the length of the third index.
len3 - the length of the fourth index.

### Returns:

dataset filled with ones.
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## or

or( QDataSet ds1, QDataSet ds2 ) → QDataSet

element-wise logical or function. returns 1 where ds1 is non-zero or ds2 is non-zero.

### 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 [view source]

## 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 [view source]

## 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 [view source]