MCPcopy Create free account
hub / github.com/Rustixir/darkbird / vec_addition

Method vec_addition

src/darkbird/database.rs:110–118  ·  view source on GitHub ↗
(&self, vec_id1: &str, vec_id2: &str)

Source from the content-addressed store, hash-verified

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]

Callers

nothing calls this directly

Calls 1

vector_additionMethod · 0.80

Tested by

no test coverage detected