Append a vector
| 413 | |
| 414 | //! Append a vector |
| 415 | void append(const ValueType *vec, size_t dim) { |
| 416 | if (ailego_unlikely(dim != dimension_)) { |
| 417 | throw std::length_error("Unmatched dimension"); |
| 418 | } |
| 419 | buffer_.append(reinterpret_cast<const char *>(vec), (dim >> 3)); |
| 420 | } |
| 421 | |
| 422 | //! Append vectors |
| 423 | void append(const ValueType *vec, size_t dim, size_t cnt) { |