External module function IMcalc - used by
singleion
This function is optional and intended to accellerate singleion by vectorizing the temperature and
thus save computation resources when using the option -Tsteps. It has the same parameters as
Icalc with the following modifications:
- double T is replaced by Vector & T containing the temperatures for which
the calculation is to be done.
- Vector & I is replaced by Matrix & I which should be filled with column
vectors containing the vector . Each column corresponds to a temperature given as inputVector & T.
- double U is replaced by Vector & U which should be filled with
the energies corresponding
to the temperatures in Vector & T
- double lnZ is replaced by Vector & lnZ which shoul be filled with the partition sums corresponding
to the temperatures in Vector & T