eelbrain.NDVar.dot

NDVar.dot(ndvar, dims=None, name=None)

Dot product

Parameters:
  • ndvar (NDVar) – Second NDVar, has to have at least the dimension dim.

  • dims (str | Sequence[str]) – Dimension(s) over which to compute the dot product (default is the last dimension shared with ndvar).

  • name (str) – Name of the output NDVar (default is ndvar.name).

Return type:

NDVar | Var | float

Examples

Compute the first 6 DSS components:

>>> to_dss, from_dss = dss(x)
>>> x_dss_6 = to_dss[:6].dot(x, 'sensor')