| 48 | static const size_t offB = 0; /* N + off */ |
| 49 | |
| 50 | static void |
| 51 | makeScaledIdentity(cl_float* matx, size_t M, size_t N, float scale ) |
| 52 | { |
| 53 | for( size_t i = 0; i < M; ++i ) |
| 54 | for (size_t j = 0; j < N; ++j) |
| 55 | { |
| 56 | matx[i * M + j] = 0.0f; |
| 57 | if( i == j ) |
| 58 | matx[i * M + j] = 1.0f * scale; |
| 59 | } |
| 60 | |
| 61 | } |
| 62 | |
| 63 | static void |
| 64 | printResult(const char* str) |