pdft.manifolds.group_by_manifold#
- pdft.manifolds.group_by_manifold(tensors, manifolds=None)[source]#
{manifold: [indices]}bucket map.Mirror of upstream src/manifolds.jl:113-119, with size-aware bucketing (U(2) and U(4) go to separate buckets because UnitaryManifold has a
dfield that participates in equality).Each tensor’s manifold is read off its values by
classify_manifold, as upstream does, unlessmanifoldsnames it: one manifold per tensor, for parameters whose geometry their values cannot tell (a real array of angles is flat, and would be classified as a phase tensor).- Parameters:
manifolds (Sequence[AbstractRiemannianManifold] | None)
- Return type: