Apply the rotation matrix to `v`, returning `R · v`.
(&self, v: &[f32])
| 161 | |
| 162 | /// Apply the rotation matrix to `v`, returning `R · v`. |
| 163 | pub fn apply_rotation(&self, v: &[f32]) -> Vec<f32> { |
| 164 | matvec(&self.rotation, v, self.dim) |
| 165 | } |
| 166 | |
| 167 | fn encode_inner(&self, v: &[f32]) -> (Vec<u8>, UnifiedQuantizedVector) { |
| 168 | let rotated = self.apply_rotation(v); |