1. A dynamic random-access memory with embedded artificial neural network functionality, comprising: a plurality of dynamic random-access memory cells associated with a plurality of sense amplifiers; and a plurality of select lines connected to the plurality of sense amplifiers, wherein: the sense amplifiers are configured to drive a shared line; select line activation is performed as a function of neural network layer input data; and the select lines are driven sequentially or simultaneously such that a signal on the shared line is modified by at least two sense amplifiers before the shared line is reset or pre-charged.