Theory and implementation of inelastic Constitutive Artificial Neural Networks | Synapse