| 99 | } |
| 100 | |
| 101 | void append(const Scalar& v, Index i) |
| 102 | { |
| 103 | Index id = m_size; |
| 104 | resize(m_size+1, 1); |
| 105 | m_values[id] = v; |
| 106 | m_indices[id] = internal::convert_index<StorageIndex>(i); |
| 107 | } |
| 108 | |
| 109 | inline Index size() const { return m_size; } |
| 110 | inline Index allocatedSize() const { return m_allocatedSize; } |
no test coverage detected