Append a vector
| 251 | |
| 252 | //! Append a vector |
| 253 | void append(const StoreType *vec, size_t dim) { |
| 254 | if (ailego_unlikely(dim != dimension_)) { |
| 255 | throw std::length_error("Unmatched dimension"); |
| 256 | } |
| 257 | buffer_.append(reinterpret_cast<const char *>(vec), dim >> 1); |
| 258 | } |
| 259 | |
| 260 | //! Append vectors |
| 261 | void append(const StoreType *vec, size_t dim, size_t cnt) { |