Skip to content

adding predefined code when the predefined class is not in the symbol table #160

@paciorek

Description

@paciorek

In working on the predefined stuff with nEigen as the test case, I had difficulty with the following use case:

y <- nEigen(x)$vectors

Because y is not of type Eigen_decomp, no object of type Eigen_decomp is in the symbol table, so we don't end up with Eigen_decomp in needed_nClasses, so the needed Eigen_decomp code file is not put in nCompiler_generatedCode and nEigen can't be found nor can its output type.

I am fixing this by adding

auxEnv$needed_nClasses <- c(auxEnv$needed_nClasses, EigenDecomp) 

to the nEigen LAT handler.

@perrydv before I do this for other predefined class cases, please let me know if this sounds like a reasonable solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions