@@ -88,11 +88,32 @@ namespace diffusr {
8888 return Rcpp::as<MatrixXd >(rcpp_result_gen);
8989 }
9090
91- inline vector<double > node_degrees_ (const MatrixXd& W) {
91+ inline MatrixXd laplacian_s (const SpMat& W) {
92+ typedef SEXP (*Ptr_laplacian_s)(SEXP);
93+ static Ptr_laplacian_s p_laplacian_s = NULL ;
94+ if (p_laplacian_s == NULL ) {
95+ validateSignature (" MatrixXd(*laplacian_s)(const SpMat&)" );
96+ p_laplacian_s = (Ptr_laplacian_s)R_GetCCallable (" diffusr" , " _diffusr_laplacian_s" );
97+ }
98+ RObject rcpp_result_gen;
99+ {
100+ RNGScope RCPP_rngScope_gen;
101+ rcpp_result_gen = p_laplacian_s (Shield<SEXP>(Rcpp::wrap (W)));
102+ }
103+ if (rcpp_result_gen.inherits (" interrupted-error" ))
104+ throw Rcpp::internal::InterruptedException ();
105+ if (Rcpp::internal::isLongjumpSentinel (rcpp_result_gen))
106+ throw Rcpp::LongjumpException (rcpp_result_gen);
107+ if (rcpp_result_gen.inherits (" try-error" ))
108+ throw Rcpp::exception (Rcpp::as<std::string>(rcpp_result_gen).c_str ());
109+ return Rcpp::as<MatrixXd >(rcpp_result_gen);
110+ }
111+
112+ inline VectorXd node_degrees_ (const MatrixXd& W) {
92113 typedef SEXP (*Ptr_node_degrees_)(SEXP);
93114 static Ptr_node_degrees_ p_node_degrees_ = NULL ;
94115 if (p_node_degrees_ == NULL ) {
95- validateSignature (" vector<double> (*node_degrees_)(const MatrixXd&)" );
116+ validateSignature (" VectorXd (*node_degrees_)(const MatrixXd&)" );
96117 p_node_degrees_ = (Ptr_node_degrees_)R_GetCCallable (" diffusr" , " _diffusr_node_degrees_" );
97118 }
98119 RObject rcpp_result_gen;
@@ -106,7 +127,28 @@ namespace diffusr {
106127 throw Rcpp::LongjumpException (rcpp_result_gen);
107128 if (rcpp_result_gen.inherits (" try-error" ))
108129 throw Rcpp::exception (Rcpp::as<std::string>(rcpp_result_gen).c_str ());
109- return Rcpp::as<vector<double > >(rcpp_result_gen);
130+ return Rcpp::as<VectorXd >(rcpp_result_gen);
131+ }
132+
133+ inline VectorXd node_degrees_s (const MSpMat& W) {
134+ typedef SEXP (*Ptr_node_degrees_s)(SEXP);
135+ static Ptr_node_degrees_s p_node_degrees_s = NULL ;
136+ if (p_node_degrees_s == NULL ) {
137+ validateSignature (" VectorXd(*node_degrees_s)(const MSpMat&)" );
138+ p_node_degrees_s = (Ptr_node_degrees_s)R_GetCCallable (" diffusr" , " _diffusr_node_degrees_s" );
139+ }
140+ RObject rcpp_result_gen;
141+ {
142+ RNGScope RCPP_rngScope_gen;
143+ rcpp_result_gen = p_node_degrees_s (Shield<SEXP>(Rcpp::wrap (W)));
144+ }
145+ if (rcpp_result_gen.inherits (" interrupted-error" ))
146+ throw Rcpp::internal::InterruptedException ();
147+ if (Rcpp::internal::isLongjumpSentinel (rcpp_result_gen))
148+ throw Rcpp::LongjumpException (rcpp_result_gen);
149+ if (rcpp_result_gen.inherits (" try-error" ))
150+ throw Rcpp::exception (Rcpp::as<std::string>(rcpp_result_gen).c_str ());
151+ return Rcpp::as<VectorXd >(rcpp_result_gen);
110152 }
111153
112154 inline MatrixXd hub_normalize_ (const MatrixXd& W) {
@@ -130,6 +172,27 @@ namespace diffusr {
130172 return Rcpp::as<MatrixXd >(rcpp_result_gen);
131173 }
132174
175+ inline MatrixXd hub_normalize_s (const SpMat& W) {
176+ typedef SEXP (*Ptr_hub_normalize_s)(SEXP);
177+ static Ptr_hub_normalize_s p_hub_normalize_s = NULL ;
178+ if (p_hub_normalize_s == NULL ) {
179+ validateSignature (" MatrixXd(*hub_normalize_s)(const SpMat&)" );
180+ p_hub_normalize_s = (Ptr_hub_normalize_s)R_GetCCallable (" diffusr" , " _diffusr_hub_normalize_s" );
181+ }
182+ RObject rcpp_result_gen;
183+ {
184+ RNGScope RCPP_rngScope_gen;
185+ rcpp_result_gen = p_hub_normalize_s (Shield<SEXP>(Rcpp::wrap (W)));
186+ }
187+ if (rcpp_result_gen.inherits (" interrupted-error" ))
188+ throw Rcpp::internal::InterruptedException ();
189+ if (Rcpp::internal::isLongjumpSentinel (rcpp_result_gen))
190+ throw Rcpp::LongjumpException (rcpp_result_gen);
191+ if (rcpp_result_gen.inherits (" try-error" ))
192+ throw Rcpp::exception (Rcpp::as<std::string>(rcpp_result_gen).c_str ());
193+ return Rcpp::as<MatrixXd >(rcpp_result_gen);
194+ }
195+
133196 inline VectorXd mrwr_ (const MatrixXd& p0, const MatrixXd& W, const double r, const double thresh, const int niter, const bool do_analytical) {
134197 typedef SEXP (*Ptr_mrwr_)(SEXP,SEXP,SEXP,SEXP,SEXP,SEXP);
135198 static Ptr_mrwr_ p_mrwr_ = NULL ;
@@ -151,11 +214,32 @@ namespace diffusr {
151214 return Rcpp::as<VectorXd >(rcpp_result_gen);
152215 }
153216
154- inline List neighbors_ (const vector<int >& node_idxs, const NumericMatrix& W, const int k) {
217+ inline VectorXd mrwr_s (const MatrixXd& p0, const SpMat& W, const double r, const double thresh, const int niter, const bool do_analytical) {
218+ typedef SEXP (*Ptr_mrwr_s)(SEXP,SEXP,SEXP,SEXP,SEXP,SEXP);
219+ static Ptr_mrwr_s p_mrwr_s = NULL ;
220+ if (p_mrwr_s == NULL ) {
221+ validateSignature (" VectorXd(*mrwr_s)(const MatrixXd&,const SpMat&,const double,const double,const int,const bool)" );
222+ p_mrwr_s = (Ptr_mrwr_s)R_GetCCallable (" diffusr" , " _diffusr_mrwr_s" );
223+ }
224+ RObject rcpp_result_gen;
225+ {
226+ RNGScope RCPP_rngScope_gen;
227+ rcpp_result_gen = p_mrwr_s (Shield<SEXP>(Rcpp::wrap (p0)), Shield<SEXP>(Rcpp::wrap (W)), Shield<SEXP>(Rcpp::wrap (r)), Shield<SEXP>(Rcpp::wrap (thresh)), Shield<SEXP>(Rcpp::wrap (niter)), Shield<SEXP>(Rcpp::wrap (do_analytical)));
228+ }
229+ if (rcpp_result_gen.inherits (" interrupted-error" ))
230+ throw Rcpp::internal::InterruptedException ();
231+ if (Rcpp::internal::isLongjumpSentinel (rcpp_result_gen))
232+ throw Rcpp::LongjumpException (rcpp_result_gen);
233+ if (rcpp_result_gen.inherits (" try-error" ))
234+ throw Rcpp::exception (Rcpp::as<std::string>(rcpp_result_gen).c_str ());
235+ return Rcpp::as<VectorXd >(rcpp_result_gen);
236+ }
237+
238+ inline List neighbors_ (const vector<int >& node_idxs, const MatrixXd& W, const int & k) {
155239 typedef SEXP (*Ptr_neighbors_)(SEXP,SEXP,SEXP);
156240 static Ptr_neighbors_ p_neighbors_ = NULL ;
157241 if (p_neighbors_ == NULL ) {
158- validateSignature (" List(*neighbors_)(const vector<int>&,const NumericMatrix &,const int)" );
242+ validateSignature (" List(*neighbors_)(const vector<int>&,const MatrixXd &,const int& )" );
159243 p_neighbors_ = (Ptr_neighbors_)R_GetCCallable (" diffusr" , " _diffusr_neighbors_" );
160244 }
161245 RObject rcpp_result_gen;
@@ -172,6 +256,27 @@ namespace diffusr {
172256 return Rcpp::as<List >(rcpp_result_gen);
173257 }
174258
259+ inline List neighbors_s (const vector<int >& node_idxs, const MSpMat& W, const int & k) {
260+ typedef SEXP (*Ptr_neighbors_s)(SEXP,SEXP,SEXP);
261+ static Ptr_neighbors_s p_neighbors_s = NULL ;
262+ if (p_neighbors_s == NULL ) {
263+ validateSignature (" List(*neighbors_s)(const vector<int>&,const MSpMat&,const int&)" );
264+ p_neighbors_s = (Ptr_neighbors_s)R_GetCCallable (" diffusr" , " _diffusr_neighbors_s" );
265+ }
266+ RObject rcpp_result_gen;
267+ {
268+ RNGScope RCPP_rngScope_gen;
269+ rcpp_result_gen = p_neighbors_s (Shield<SEXP>(Rcpp::wrap (node_idxs)), Shield<SEXP>(Rcpp::wrap (W)), Shield<SEXP>(Rcpp::wrap (k)));
270+ }
271+ if (rcpp_result_gen.inherits (" interrupted-error" ))
272+ throw Rcpp::internal::InterruptedException ();
273+ if (Rcpp::internal::isLongjumpSentinel (rcpp_result_gen))
274+ throw Rcpp::LongjumpException (rcpp_result_gen);
275+ if (rcpp_result_gen.inherits (" try-error" ))
276+ throw Rcpp::exception (Rcpp::as<std::string>(rcpp_result_gen).c_str ());
277+ return Rcpp::as<List >(rcpp_result_gen);
278+ }
279+
175280}
176281
177282#endif // RCPP_diffusr_RCPPEXPORTS_H_GEN_
0 commit comments