MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / JoinOp

Method JoinOp

inst/include/Rcpp/sugar/functions/cbind.h:177–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175
176public:
177 JoinOp(const BindableExpression<RTYPE, E1>& e1_,
178 const BindableExpression<RTYPE, E2>& e2_)
179 : e1(e1_), e2(e2_)
180 {
181 if (e1.nrow() != e2.nrow()) {
182 std::string msg =
183 "Error in cbind: "
184 "Matrix and Vector operands "
185 "must have equal "
186 "number of rows (length).";
187 Rcpp::stop(msg);
188 }
189 }
190
191 inline R_xlen_t size() const { return e1.size() + e2.size(); }
192

Callers

nothing calls this directly

Calls 2

stopFunction · 0.85
nrowMethod · 0.45

Tested by

no test coverage detected