Beispiel #1
0
	void setAnnotations(Rcpp::Matrix<REALSXP> annotations) {
		annotations_ = annotations;
		num_annotations_ = annotations.nrow();
		assert(annotations.ncol() == D_);
	}
Beispiel #2
0
inline Mat< CType(RType) > asMat(Rcpp::Matrix<RType>& m){
	return Mat< CType(RType) >(m.begin(), m.nrow(), m.ncol());
}