Express Hopfield-style energy sum as matrices

13 Views Asked by At

I'm trying to express a Hopfield-style energy as matrices: Hopfield-style energy

The equation in the link can be written as:

Hopfield-style energy matrix form

I'm trying to calculate partial derivatives of the energy d/p_i E(p), but c in the equations is also a function of p_i, c_i = lambda * e^(-p_i*ln(p_i)), so the sum can be written as:

expanded form

How do I write the last sum in 3 also as matrices?