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

Method map

src/matrix.rs:659–667  ·  view source on GitHub ↗
(&self, f: F)

Source from the content-addressed store, hash-verified

657 }
658
659 pub fn map<F, U>(&self, f: F) -> Matrix<U>
660 where F: FnMut(&T) -> U {
661
662 Matrix {
663 nrows: self.nrows,
664 ncols: self.ncols,
665 data: self.data.iter().map(f).collect()
666 }
667 }
668
669 pub fn add_row(&mut self, row: &[T]) {
670

Callers 15

test_vector_opsFunction · 0.80
sliding_window_2dFunction · 0.80
plot_learning_curveFunction · 0.80
neighboursMethod · 0.80
findMethod · 0.80
columnMethod · 0.80
if_thenMethod · 0.80
test_mapFunction · 0.80
optimizeMethod · 0.80
derivativesMethod · 0.80
nextMethod · 0.80
add_columnsMethod · 0.80

Calls 1

iterMethod · 0.45

Tested by 2

test_vector_opsFunction · 0.64
test_mapFunction · 0.64