示例#1
0
文件: sparseLDA.cpp 项目: rforge/rtm
	void setAnnotations(Rcpp::Matrix<REALSXP> annotations) {
		annotations_ = annotations;
		num_annotations_ = annotations.nrow();
		assert(annotations.ncol() == D_);
	}
示例#2
0
文件: array.cpp 项目: wcstcyx/kfoots
inline Mat< CType(RType) > asMat(Rcpp::Matrix<RType>& m){
	return Mat< CType(RType) >(m.begin(), m.nrow(), m.ncol());
}