Commit 519d75fe authored by zhanxw's avatar zhanxw
Browse files

add MatrixRef

parent 2864a7fe
#define REF_TO_EIGEN(matRef, varName) \
Eigen::Map<Eigen::MatrixXf> varName((matRef).memory_, (matRef).nrow_, \
struct FloatMatrixRef {
FloatMatrixRef(float* memory, int nrow, int ncol)
: memory_(memory), nrow_(nrow), ncol_(ncol) {}
float* memory_;
int nrow_;
int ncol_;
#endif /* _MATRIXREFERENCE_H_ */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment