| 938 | |
| 939 | template<typename typ> |
| 940 | static inline void |
| 941 | nan_matrix(typ *dst, const LINEARIZE_DATA_t* data) |
| 942 | { |
| 943 | int i, j; |
| 944 | for (i = 0; i < data->rows; i++) { |
| 945 | typ *cp = dst; |
| 946 | ptrdiff_t cs = data->column_strides/sizeof(typ); |
| 947 | for (j = 0; j < data->columns; ++j) { |
| 948 | *cp = numeric_limits<typ>::nan; |
| 949 | cp += cs; |
| 950 | } |
| 951 | dst += data->row_strides/sizeof(typ); |
| 952 | } |
| 953 | } |
| 954 | |
| 955 | template<typename typ> |
| 956 | static inline void |
no outgoing calls
no test coverage detected