MCPcopy Create free account
hub / github.com/davisking/dlib / mat_row__setitem__

Function mat_row__setitem__

tools/python/src/matrix.cpp:129–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127};
128
129void mat_row__setitem__(mat_row& c, long p, double val)
130{
131 if (p < 0) {
132 p = c.size + p; // negative index
133 }
134 if (p > c.size-1) {
135 PyErr_SetString( PyExc_IndexError, "3 index out of range"
136 );
137 throw py::error_already_set();
138 }
139 c.data[p] = val;
140}
141
142
143string mat_row__str__(mat_row& c)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected