MCPcopy Create free account
hub / github.com/numpy/numpy / triu_matrix

Function triu_matrix

numpy/linalg/umath_linalg.cpp:990–1001  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

988
989template<typename typ>
990static inline void
991triu_matrix(typ *matrix, size_t n)
992{
993 size_t i, j;
994 matrix += n;
995 for (i = 1; i < n; ++i) {
996 for (j = 0; j < i; ++j) {
997 matrix[j] = numeric_limits<typ>::zero;
998 }
999 matrix += n;
1000 }
1001}
1002
1003
1004/* -------------------------------------------------------------------------- */

Callers 1

choleskyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected