This branch adds scalar support to gradcheck. The pattern of using findGrad to locate a corresponding value inside a nested table doesn't work when the variable being searched for is a basic type. As an alternative I've added a few utilities to facilitate the access of values inside of nested tables and rewritten the functions in src/gradcheck.lua to accept the nested key as input rather than the variable itself (which could be a basic type).
This branch adds scalar support to gradcheck. The pattern of using findGrad to locate a corresponding value inside a nested table doesn't work when the variable being searched for is a basic type. As an alternative I've added a few utilities to facilitate the access of values inside of nested tables and rewritten the functions in
src/gradcheck.lua
to accept the nested key as input rather than the variable itself (which could be a basic type).