Get the negative spherical harmonic from a positive one.
(sh, order)
| 883 | |
| 884 | |
| 885 | def _sh_negate(sh, order): |
| 886 | """Get the negative spherical harmonic from a positive one.""" |
| 887 | assert order >= 0 |
| 888 | return sh.conj() * (-1.0 if order % 2 else 1.0) # == (-1) ** order |
| 889 | |
| 890 | |
| 891 | def _sh_complex_to_real(sh, order): |
no outgoing calls