Learning the element-wise square of a vector with an STDP-like rule that includes error information.