You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are n cosets of S_{n-1} < S_n. Young's Orthogonal Form (YOR) is specifically adapted to the copy of S_{n-1} where the element n is fixed in the nth position. The _cosets_ of this subgroup correspond to the elements that all have n in a given position.
69
69
70
70
Args:
71
-
tensor (torch.Tensor): The function on S_n we are working with, either shape (batch, n!) or (n!,)
72
-
sn_perms (torch.Tensor): A tensor-version of S_n with shape (n!, n), each row is the elements 0..n-1 permuted, and the rows are in lexicographic order
71
+
tensor (jax.Array): The function on S_n we are working with, either shape (batch, n!) or (n!,)
72
+
sn_perms (jax.Array): A tensor-version of S_n with shape (n!, n), each row is the elements 0..n-1 permuted, and the rows are in lexicographic order
73
73
idx (int): The index of n that defines the coset we are grabbing
74
74
75
75
Returns:
76
-
torch.Tensor either of shape (batch, (n-1)!) or ((n-1)!, ), depending on whether or not tensor had a batch dimension
76
+
jax.Array either of shape (batch, (n-1)!) or ((n-1)!, ), depending on whether or not tensor had a batch dimension
To get around this we: (1) Use vmap across the given batch dimension of fn_vals (2) Always return the tensor to have the same batch dimension (or none) as fn_vals
216
216
217
217
Args:
218
-
fn_vals (torch.Tensor): A tensor of shape (batch_size, n!) for an integer n
218
+
fn_vals (jax.Array): A tensor of shape (batch_size, n!) for an integer n
219
219
irrep (SnIrrep): An irreducible representation of Sn, given by an integer partition of n
220
220
221
221
Returns:
222
-
torch.Tensor the projection of `fn_vals` onto `irrep` with shape (batch_size, irrep.dim, irrep.dim)
222
+
jax.Array the projection of `fn_vals` onto `irrep` with shape (batch_size, irrep.dim, irrep.dim)
0 commit comments