MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / fill_diag

Method fill_diag

inst/include/Rcpp/vector/Matrix.h:120–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118
119 template <typename U>
120 void fill_diag( const U& u) {
121 fill_diag__dispatch( typename traits::is_trivial<RTYPE>::type(), u ) ;
122 }
123
124 template <typename U> static Matrix diag( int size, const U& diag_value ) {
125 Matrix res(size,size) ;

Callers 3

num_diag_fillFunction · 0.80
char_diag_fillFunction · 0.80
diagMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected