| 122 | }; |
| 123 | |
| 124 | inline void MakeSimpleLayout(int rows, int cols, Order order, Layout* layout) { |
| 125 | layout->rows = rows; |
| 126 | layout->cols = cols; |
| 127 | layout->order = order; |
| 128 | layout->stride = order == Order::kColMajor ? rows : cols; |
| 129 | } |
| 130 | |
| 131 | // Opaque data structure representing a pre-packed matrix, as obtained from |
| 132 | // Ruy's advanced API. |
no outgoing calls