Append a vector
| 71 | |
| 72 | //! Append a vector |
| 73 | void append(const ValueType *vec, size_t dim) { |
| 74 | if (ailego_unlikely(dim != dimension_)) { |
| 75 | throw std::length_error("Unmatched dimension"); |
| 76 | } |
| 77 | buffer_.append(reinterpret_cast<const char *>(vec), |
| 78 | dim * sizeof(ValueType)); |
| 79 | } |
| 80 | |
| 81 | //! Append vectors |
| 82 | void append(const ValueType *vec, size_t dim, size_t cnt) { |