Skip to main content

vector_len

Function vector_len 

Source
pub fn vector_len(dim: usize, of: Element) -> Result<usize>
Expand description

How long the value of a vector record with dim coordinates is.

ยงErrors

Code::Invalid if dim is zero or past MAX_DIM. A zero dimensional vector is not a small vector, it is a mistake somewhere upstream, and it would sort as equidistant from everything.