   }
 
   inline Type* get() const { return data_;}
-  inline size_t pitch() const { return pitch_;}
 
 private:
   void setupMemory(const Type* src)

    if(mem_type_ == MemoryType::HOST_MEMORY)
    {
      data_ = (Type*) malloc (sizeof(Type)*_rows*_cols);
      pitch_ = cols_;
      if(data_ == NULL)
      {
        throw std::bad_alloc();;

protected:
  size_t rows_ = _rows;
  size_t cols_ = _cols;
  Type* data_;
};

