| 127 | }; |
| 128 | |
| 129 | void 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 | |
| 143 | string mat_row__str__(mat_row& c) |
nothing calls this directly
no outgoing calls
no test coverage detected