Skip to content

Commit

Permalink
Fixed syntax (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
wleoncio committed Jul 29, 2024
1 parent 25797de commit 6646d7d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/func_MCMC_graph_cpp.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include <RcppArmadillo.h>
// [[Rcpp::depends(RcppArmadillo)]]


// [[Rcpp::export]]
Rcpp::List func_MCMC_graph_cpp(
const Rcpp::List sobj,
Expand All @@ -12,7 +11,8 @@ Rcpp::List func_MCMC_graph_cpp(
const bool MRF_2b
) {
// Extracting data
int n = Rcpp::as<int>(sobj["n"]);
Rcpp::List sobj_n = sobj["n"];
int n = Rcpp::as<int>(sobj_n[0]);
int p = Rcpp::as<int>(sobj["p"]);
Rcpp::List SSig = sobj["SSig"];

Expand All @@ -22,7 +22,6 @@ Rcpp::List func_MCMC_graph_cpp(
Rcpp::List V = Rcpp::List::create(); // TEMP: placeholder
Rcpp::List C = Rcpp::List::create(); // TEMP: placeholder

Rcpp::Rcout << "yo" << std::endl; // TEMP
Rcpp::List out = Rcpp::List::create(
Rcpp::Named("Sig.ini") = Sig,
Rcpp::Named("G.ini") = G,
Expand Down

0 comments on commit 6646d7d

Please sign in to comment.