Append a vector
| 428 | |
| 429 | //! Append a vector |
| 430 | void append(const ValueType *vec, size_t dim) { |
| 431 | if (ailego_unlikely(dim != dimension_)) { |
| 432 | throw std::length_error("Unmatched dimension"); |
| 433 | } |
| 434 | buffer_.append(reinterpret_cast<const char *>(vec), (dim >> 3)); |
| 435 | } |
| 436 | |
| 437 | //! Append vectors |
| 438 | void append(const ValueType *vec, size_t dim, size_t cnt) { |