Global

Methods


add(that)

Add that to this, and return a new array containing the result.

Parameters:
Name Type Description
that

The array to be added to this one.

Source:
Returns:

A new MdArray containing the values of that + this.


applyOp(that, opFn, dim)

Apply opFn to the values of this and that. If a dim is requested, then
apply accross that dim.

Parameters:
Name Type Description
that

Another array view object - or possibly an MdArray object.

opFn

A function to apply to combinations of elements from this
and that.

dim

If present, indicates a dimension along with to apply the
opFn.

Source:
Returns:

A new MdArray containing the results of applying opFn to
this and that as requested.


assign(that)

Assign this view's values to be the same as that's values.

Parameters:
Name Type Description
that

A compatible MdArray or ArrayView.

Source:

div(that)

Divide this by that and return a new MdArray containing the result.

Parameters:
Name Type Description
that

The array to divide this by.

Source:
Returns:

A new MdArray containing the values of this / that.


enumerateIndices Enumerate the indices of this ArrayView object.()

Source:
Returns:

An array containing the indices for each element in this array
view.


findIndex(idx)

Return the required 1-d javascript array index indicated by the supplied
index coordinates.

Parameters:
Name Type Description
idx

An array containing the coordinate of the requested element.

Source:

flatten()

Return a new array containing the data of the view.

Source:

foreach(f)

Apply function f to each element in this ArrayView sequentially.

Parameters:
Name Type Description
f

A function to apply to each element in this.

Source:

mul Multiply this by that and return a new MdArray containing the result.(that)

Parameters:
Name Type Description
that

The array to be multiplied with this one.

Source:
Returns:

A new MdArray containing the values of this * that.


setSlice(vals)

Set the values in this slice from vals.

Parameters:
Name Type Description
vals

An array of values.

Source:

sub(that)

Subtract that from this, and return a new MdArray containing the result.

Parameters:
Name Type Description
that

The array to be subtracted from this one.

Source:
Returns:

A new MdArray containing the values of this - that.


toString()

Return a string representation of the the multi-Dimensional array.

Source:
Returns:

A readable string for the array.