summaryrefslogtreecommitdiff
path: root/src/matrix.h
diff options
context:
space:
mode:
authorAnthony LaTorre <telatorre@gmail.com>2011-05-15 18:35:41 -0400
committerAnthony LaTorre <telatorre@gmail.com>2011-05-15 18:35:41 -0400
commit2aa342458d1278487f9ca47ff0111e74b20d63ef (patch)
tree63f2bfbbc1f971525cf1f79c06e74d969484eaa2 /src/matrix.h
parent8ea783d053e817568b3e7d04f28a6fd2583f18cf (diff)
downloadchroma-2aa342458d1278487f9ca47ff0111e74b20d63ef.tar.gz
chroma-2aa342458d1278487f9ca47ff0111e74b20d63ef.tar.bz2
chroma-2aa342458d1278487f9ca47ff0111e74b20d63ef.zip
cleanup. fixed tests
Diffstat (limited to 'src/matrix.h')
-rw-r--r--src/matrix.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/matrix.h b/src/matrix.h
index 5c72344..a3e480b 100644
--- a/src/matrix.h
+++ b/src/matrix.h
@@ -197,9 +197,7 @@ __device__ __host__ Matrix operator/ (const float &c, const Matrix &m)
__device__ __host__ float det(const Matrix &m)
{
- return m.a00*(m.a11*m.a22 - m.a12*m.a21) - \
- m.a10*(m.a01*m.a22 - m.a02*m.a21) + \
- m.a20*(m.a01*m.a12 - m.a02*m.a11);
+ return m.a00*(m.a11*m.a22 - m.a12*m.a21) - m.a10*(m.a01*m.a22 - m.a02*m.a21) + m.a20*(m.a01*m.a12 - m.a02*m.a11);
}
__device__ __host__ Matrix inv(const Matrix &m)