Skip to content

EIGEN_DEFAULT_TO_ROW_MAJOR and other flags #118

Open
@HaoZeke

Description

@HaoZeke

I'm interfacing with a legacy C++ code which sets EIGEN_DEFAULT_TO_ROW_MAJOR (well known to break compatibility) but, basic searching and playing with defining the macro doesn't seem to help at all in R, matrices are still in column order and have to be manually reshaped (say matrix(byrow=T, ncol=3)).

I could wrap this thing in an R class and deal with this there every-time but was hoping I might have missed a way of setting the flag.

Things I tried:

#define EIGEN_DEFAULT_TO_ROW_MAJOR
#include <RcppEigen.h>
// [[Rcpp::depends(RcppEigen)]]

And moving it after the #include or the comment also does not help.

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