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 (Union[str, Sequence[str], None]) – Dimension(s) over which to compute the dot product (default is the last dimension shared with ndvar).

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

Examples

Compute the first 6 DSS components:

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

Union[NDVar, Var, float]