pypcga.ensemble_dot#

pypcga.ensemble_dot(X1: ndarray[tuple[Any, ...], dtype[float64]], X2: ndarray[tuple[Any, ...], dtype[float64]]) ndarray[tuple[Any, ...], dtype[float64]][source]#

Return the dot products for multiple vectors.

Parameters:
  • X1 (NDArrayFloat) – First ensemble of vectors with shape $(N_{mathrm{s}}, N_{mathm{e}})$.

  • X2 (NDArrayFloat) – First ensemble of vectors with shape $(N_{mathrm{s}}, N_{mathm{e}})$.

Returns:

$N_{mathrm{e}}$ dot products as a 1D vector.

Return type:

NDArrayFloat