MCPcopy Create free account
hub / github.com/douchuan/algorithm / dimension

Method dimension

src/math/sparse_vector.rs:47–49  ·  view source on GitHub ↗

Returns the dimension of this vector.

(&self)

Source from the content-addressed store, hash-verified

45
46 /// Returns the dimension of this vector.
47 pub fn dimension(&self) -> usize {
48 self.d
49 }
50
51 /// Returns the inner product of this vector with the specified vector.
52 pub fn dot(&self, that: &Self) -> Result<f64, Err> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected