| 35 | } |
| 36 | |
| 37 | std::shared_ptr<matrix<double> > make_matrix_from_size(long nr, long nc) |
| 38 | { |
| 39 | if (nr < 0 || nc < 0) |
| 40 | { |
| 41 | PyErr_SetString( PyExc_IndexError, "Input dimensions can't be negative." |
| 42 | ); |
| 43 | throw py::error_already_set(); |
| 44 | } |
| 45 | auto temp = std::make_shared<matrix<double>>(nr,nc); |
| 46 | *temp = 0; |
| 47 | return temp; |
| 48 | } |
| 49 | |
| 50 | |
| 51 | std::shared_ptr<matrix<double> > from_object(py::object obj) |
nothing calls this directly
no outgoing calls
no test coverage detected