(&self, vec_id: &str, scalar: f32)
| 133 | /// Performs scalar multiplication of a vector stored in the storage. |
| 134 | #[inline] |
| 135 | pub fn vec_subtraction(&self, vec_id: &str, scalar: f32) -> Result<Option<Vector>, SessionResult> { |
| 136 | match self.datastores.get::<VecStorage>() { |
| 137 | None => Err(SessionResult::DataStoreNotFound), |
| 138 | Some(datastore) => { |
| 139 | let res = datastore.vector_scaling(vec_id, scalar); |
| 140 | Ok(res) |
| 141 | } |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | |
| 146 |
nothing calls this directly
no test coverage detected