EIGEN_DEFAULT_TO_ROW_MAJOR and other flags

Aperta
#118 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cpp, r
Ambito
data

Direzione di ricerca

Start with the EIGEN_DEFAULT_TO_ROW_MAJOR definition and the RcppEigen.h include in the reported Rcpp example, checking how macro placement affects the generated matrix layout. Compare the result with R's column-major behavior; done means the supported configuration or limitation is established and documented or tested.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C++
Stelle
118
Fork
43
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di RcppCore/RcppEigen

Tutte le issue di RcppCore/RcppEigen

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.