Closed jamesgardner1421 closed 3 years ago
Models could implement dofs(::Model) since the model should specify how many degrees of freedom it expects.
dofs(::Model)
This would allow us to have potentials and derivatives for 1D models that can expect single values rather than a 1x1 matrix.
Could also have nstates(::Model) to make it clearer than having an internal field.
nstates(::Model)
Models could implement
dofs(::Model)
since the model should specify how many degrees of freedom it expects.This would allow us to have potentials and derivatives for 1D models that can expect single values rather than a 1x1 matrix.
Could also have
nstates(::Model)
to make it clearer than having an internal field.