where mdes is the vector of the spatially discretized target magnetization, the vector b is the time discretization of the RF pulses, and A is a matrix containing the linear relations resulting from the discretization of the linearized solution of the Bloch equations between the vector mdes and the vector b.