Programmable non-linearity for STAR cellular neural networks