Class: Pgvector::PG::TextDecoder::Halfvec
- Inherits:
-
PG::SimpleDecoder
- Object
- PG::SimpleDecoder
- Pgvector::PG::TextDecoder::Halfvec
- Defined in:
- lib/pgvector/pg.rb
Instance Method Summary collapse
Instance Method Details
#decode(string, tuple = nil, field = nil) ⇒ Object
76 77 78 |
# File 'lib/pgvector/pg.rb', line 76 def decode(string, tuple = nil, field = nil) ::Pgvector::HalfVector.from_text(string).to_a end |