Class: RubyLLM::Turbovec::TurboQuantIndex
- Inherits:
-
Object
- Object
- RubyLLM::Turbovec::TurboQuantIndex
- Defined in:
- sig/ruby_llm/turbovec.rbs
Class Method Summary collapse
Instance Method Summary collapse
- #add ⇒ void
- #add_with_dim ⇒ void
- #bit_width ⇒ ::Integer
- #dim ⇒ ::Integer
- #dim_opt ⇒ ::Integer?
- #empty? ⇒ Boolean
- #len ⇒ ::Integer
- #prepare ⇒ void
- #search ⇒ SearchResults
- #search_with_mask ⇒ SearchResults
- #swap_remove ⇒ ::Integer
- #write ⇒ void
Class Method Details
.load ⇒ TurboQuantIndex
8 |
# File 'sig/ruby_llm/turbovec.rbs', line 8
def self.load: (::String) -> TurboQuantIndex
|
.new ⇒ TurboQuantIndex
6 |
# File 'sig/ruby_llm/turbovec.rbs', line 6
def self.new: (::Integer, ::Integer) -> TurboQuantIndex
|
.new_lazy ⇒ TurboQuantIndex
7 |
# File 'sig/ruby_llm/turbovec.rbs', line 7
def self.new_lazy: (::Integer) -> TurboQuantIndex
|
Instance Method Details
#add ⇒ void
This method returns an undefined value.
10 |
# File 'sig/ruby_llm/turbovec.rbs', line 10
def add: (::Array[::Float]) -> void
|
#add_with_dim ⇒ void
This method returns an undefined value.
11 |
# File 'sig/ruby_llm/turbovec.rbs', line 11
def add_with_dim: (::Array[::Float], ::Integer) -> void
|
#bit_width ⇒ ::Integer
20 |
# File 'sig/ruby_llm/turbovec.rbs', line 20
def bit_width: () -> ::Integer
|
#dim ⇒ ::Integer
18 |
# File 'sig/ruby_llm/turbovec.rbs', line 18
def dim: () -> ::Integer
|
#dim_opt ⇒ ::Integer?
19 |
# File 'sig/ruby_llm/turbovec.rbs', line 19
def dim_opt: () -> ::Integer?
|
#empty? ⇒ Boolean
17 |
# File 'sig/ruby_llm/turbovec.rbs', line 17
def empty?: () -> bool
|
#len ⇒ ::Integer
16 |
# File 'sig/ruby_llm/turbovec.rbs', line 16
def len: () -> ::Integer
|
#prepare ⇒ void
This method returns an undefined value.
14 |
# File 'sig/ruby_llm/turbovec.rbs', line 14
def prepare: () -> void
|
#search ⇒ SearchResults
12 |
# File 'sig/ruby_llm/turbovec.rbs', line 12
def search: (::Array[::Float], ::Integer) -> SearchResults
|
#search_with_mask ⇒ SearchResults
13 |
# File 'sig/ruby_llm/turbovec.rbs', line 13
def search_with_mask: (::Array[::Float], ::Integer, ::Array[bool]?) -> SearchResults
|
#swap_remove ⇒ ::Integer
21 |
# File 'sig/ruby_llm/turbovec.rbs', line 21
def swap_remove: (::Integer) -> ::Integer
|
#write ⇒ void
This method returns an undefined value.
15 |
# File 'sig/ruby_llm/turbovec.rbs', line 15
def write: (::String) -> void
|