Append a vector
| 241 | |
| 242 | //! Append a vector |
| 243 | void append(const StoreType *vec, size_t dim) { |
| 244 | if (ailego_unlikely(dim != dimension_)) { |
| 245 | throw std::length_error("Unmatched dimension"); |
| 246 | } |
| 247 | buffer_.append(reinterpret_cast<const char *>(vec), dim >> 1); |
| 248 | } |
| 249 | |
| 250 | //! Append vectors |
| 251 | void append(const StoreType *vec, size_t dim, size_t cnt) { |