xnn.ffnn.models.amber.multiple_angles#

xnn.ffnn.models.amber.multiple_angles(cos1, sin1, n_max)[source]#

cos(n phi) and sin(n phi) for n = 1..n_max by recurrence.

Parameters:
  • cos1 (Tensor) – cos phi and sin phi of shape (M,).

  • sin1 (Tensor) – cos phi and sin phi of shape (M,).

  • n_max (int) – Highest multiple.

Returns:

Two (M, n_max) tensors, column n - 1 holding the multiple n.

Return type:

tuple of Tensor