Skip to content

Using RTMB:::Term and sparse_hessian_compress together #80

@James-Thorson-NOAA

Description

@James-Thorson-NOAA

It appears that RTMB:::Term(.) calls RTMB:::getPositiveHessian, which scans the tape for "TermOp1" operations. However, when using TMB::config( tmbad.sparse_hessian_compress = TRUE, DLL="RTMB" ) to compress the Hessian (i.e., save memory), it then labels the repeated elements as atomic functions, so RTMB:::getPositiveHessian no longer works.

Is there any way to call the machinery of tmbad.sparse_hessian_compress on a built tape, i.e., after executing RTMB:::getPositiveHessian, so that these two features could be done together on the same model?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions