xnn.common.models.vibrations.exact_curvature#

xnn.common.models.vibrations.exact_curvature(model)[source]#

Switch on, within the block, what a model’s exact second derivatives need.

Every submodule with a position_response attribute (the NDDO methods of xnn.sqmnn, whose SCF density must then follow the positions) has it set to True; the previous values return on exit.

Parameters:

model (torch.nn.Module) – The model.

Yields:

torch.nn.Module – The same model.

Return type:

Iterator[Module]