Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RcppCore/Rcpp
/ Diag_Maker
Method
Diag_Maker
inst/include/Rcpp/sugar/matrix/diag.h:57–57 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
55
typedef typename Rcpp::traits::storage_type<RTYPE>::type STORAGE ;
56
57
Diag_Maker( const VEC_TYPE& object_ ) : object(object_), n(object_.size()) {}
58
59
inline STORAGE operator()( int i, int j ) const {
60
return (i==j) ? object[i] : 0 ;
Callers
nothing calls this directly
Calls
1
size
Method · 0.45
Tested by
no test coverage detected