diff options
| author | Anthony LaTorre <telatorre@gmail.com> | 2011-05-06 18:00:03 -0400 |
|---|---|---|
| committer | Anthony LaTorre <telatorre@gmail.com> | 2011-05-06 18:00:03 -0400 |
| commit | 53c20f9b347e9aa3b1844f194d86eb056afc2341 (patch) | |
| tree | 9685434cfa3a42943760c8fed47b0c2f11594bce /tests/matrix_test.cu | |
| parent | 61a7a1ebdc028517db22f33741b31f63018979c2 (diff) | |
| download | chroma-53c20f9b347e9aa3b1844f194d86eb056afc2341.tar.gz chroma-53c20f9b347e9aa3b1844f194d86eb056afc2341.tar.bz2 chroma-53c20f9b347e9aa3b1844f194d86eb056afc2341.zip | |
added unary minus matrix; updated test
Diffstat (limited to 'tests/matrix_test.cu')
| -rw-r--r-- | tests/matrix_test.cu | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/matrix_test.cu b/tests/matrix_test.cu index 5c88a92..99e13dc 100644 --- a/tests/matrix_test.cu +++ b/tests/matrix_test.cu @@ -35,6 +35,11 @@ __global__ void inv(float *a, float *dest) matrix2array(inv(m), dest); } +__global__ void minusmatrix(float *a, float *dest) +{ + matrix2array(-array2matrix(a), dest); +} + __global__ void matrixadd(float *a, float *b, float *dest) { matrix2array(array2matrix(a)+array2matrix(b), dest); |
