Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RcppCore/Rcpp
/ diag
Function
diag
inst/include/Rcpp/sugar/matrix/diag.h:82–85 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
80
81
template <typename T>
82
inline typename sugar::diag_result_type_trait<T>::type
83
diag( const T& t ){
84
return typename sugar::diag_result_type_trait<T>::type( t ) ;
85
}
86
87
88
} // Rcpp
Callers
4
matrix_integer_diag
Function · 0.85
matrix_character_diag
Function · 0.85
runit_diag
Function · 0.85
eye
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected