bis_protein_structure.TORSION2.angles_to_sincos

bis_protein_structure.TORSION2.angles_to_sincos(tor_angles)[source]

Convert angles to sine and cosine values.

Parameters:

tor_angles (torch.Tensor) – A tensor of shape (n, m) containing angles in degrees.

Returns:

A tensor of shape (n, m, 2) where the last dimension contains the sine and cosine of the angles.

Return type:

torch.Tensor