We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8344aef commit 57814d2Copy full SHA for 57814d2
1 file changed
include/pgvector/sparsevec.hpp
@@ -18,16 +18,6 @@ namespace pgvector {
18
/// A sparse vector.
19
class SparseVector {
20
public:
21
- /// @private
22
- SparseVector(int dimensions, const std::vector<int>& indices, const std::vector<float>& values) {
23
- if (values.size() != indices.size()) {
24
- throw std::invalid_argument("indices and values must be the same length");
25
- }
26
- dimensions_ = dimensions;
27
- indices_ = indices;
28
- values_ = values;
29
30
-
31
/// @private
32
SparseVector(int dimensions, std::vector<int>&& indices, std::vector<float>&& values) {
33
if (values.size() != indices.size()) {
0 commit comments