MCPcopy Create free account
hub / github.com/daniel-e/rustml / cols

Method cols

src/matrix.rs:392–392  ·  view source on GitHub ↗

Returns the number of columns of the matrix. ``` # #[macro_use] extern crate rustml; use rustml::*; # fn main() { let m = mat![ 1.0, 1.5, 1.8; 2.0, 2.5, 2.8 ]; assert_eq!(m.cols(), 3); # } ```

(&self)

Source from the content-addressed store, hash-verified

390 /// # }
391 /// ```
392 pub fn cols (&self) -> usize { self.ncols }
393
394 /// Returns an iterator over all elements of the matrix in row-major order.
395 ///

Callers 15

mul_vec_minus_vecMethod · 0.80
mul_dgemvMethod · 0.80
mul_scalar_vecMethod · 0.80
d_gemmFunction · 0.80
d_gemvFunction · 0.80
s_gemmFunction · 0.80
s_gemvFunction · 0.80
from_col_vectorsMethod · 0.80
from_fileMethod · 0.80
emptyMethod · 0.80
lead_dimMethod · 0.80
idxMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected