Class: Vector
- Inherits:
-
Object
- Object
- Vector
- Extended by:
- Clusterer::DocumentVector::ClassMethods
- Defined in:
- lib/clusterer/lsi/dmatrix.rb,
lib/clusterer/lsi/document_vector.rb
Instance Attribute Summary
Attributes included from Clusterer::DocumentVector::InstanceMethods
Instance Method Summary collapse
Methods included from Clusterer::DocumentVector::ClassMethods
Methods included from Clusterer::DocumentVector::InstanceMethods
Instance Method Details
#/(x) ⇒ Object
129 130 131 |
# File 'lib/clusterer/lsi/dmatrix.rb', line 129 def / (x) self * (1/x) end |
#dimensions ⇒ Object
125 126 127 |
# File 'lib/clusterer/lsi/dmatrix.rb', line 125 def dimensions [size] end |
#transpose ⇒ Object
121 122 123 |
# File 'lib/clusterer/lsi/dmatrix.rb', line 121 def transpose self end |