bidirectional generalized neurons