(self, A)
| 277 | return A - A.transpose(-1, -2) |
| 278 | |
| 279 | def right_inverse(self, A): |
| 280 | # We assume that A is skew-symmetric |
| 281 | # We take the upper-triangular elements, as these are those used in the forward |
| 282 | return A.triu(1) |
| 283 | |
| 284 | ############################################################################### |
| 285 | # We may now initialize a layer that is parametrized with ``Skew`` |
nothing calls this directly
no outgoing calls
no test coverage detected