eigen - Serbipunk/notes GitHub Wiki

Eigen::Map

看起来像是2维矩阵的内存拷贝形式

Eigen::Map<const ImageType>(imageRGBA, nHeight, nWidth << 2);

inline Map(PointerArgType dataPtr, Index rows, Index cols, const StrideType& stride = StrideType())
      : Base(cast_to_pointer_type(dataPtr), rows, cols), m_stride(stride)