From 53c20f9b347e9aa3b1844f194d86eb056afc2341 Mon Sep 17 00:00:00 2001 From: Anthony LaTorre Date: Fri, 6 May 2011 18:00:03 -0400 Subject: added unary minus matrix; updated test --- tests/matrix_test.cu | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/matrix_test.cu') 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); -- cgit