(&self, vec_id1: &str, vec_id2: &str)
| 108 | |
| 109 | #[inline] |
| 110 | pub fn vec_addition(&self, vec_id1: &str, vec_id2: &str) -> Result<Option<Vector>, SessionResult> { |
| 111 | match self.datastores.get::<VecStorage>() { |
| 112 | None => Err(SessionResult::DataStoreNotFound), |
| 113 | Some(datastore) => { |
| 114 | let res = datastore.vector_addition(vec_id1, vec_id2); |
| 115 | Ok(res) |
| 116 | } |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | /// Performs scalar multiplication of a vector stored in the storage. |
| 121 | #[inline] |
nothing calls this directly
no test coverage detected