Internal LDheatmap functions.

Details

These are not to be called by the user or are undocumented.