Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/pure-cfg/src/include/Diderot/inline-matrix.h
ViewVC logotype

Diff of /branches/pure-cfg/src/include/Diderot/inline-matrix.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 728, Sat Apr 2 00:03:08 2011 UTC revision 729, Sat Apr 2 00:05:10 2011 UTC
# Line 63  Line 63 
63  // The Frobenius norm of a matrix is the sqrt of the sum of the squares of the elements  // The Frobenius norm of a matrix is the sqrt of the sum of the squares of the elements
64  STATIC_INLINE float norm4x4f (Diderot_Mat4x4_t m)  STATIC_INLINE float norm4x4f (Diderot_Mat4x4_t m)
65  {  {
66      return (sqrt(dot4f(m[0].v,m[0].v) + dot4f(m[1].v,m[1].v) + dot4f(m[2].v,m[2].v) + dot4f(m[3].v,m[3].v));      return sqrt(dot4f(m[0].v,m[0].v) + dot4f(m[1].v,m[1].v) + dot4f(m[2].v,m[2].v) + dot4f(m[3].v,m[3].v));
67  }  }
68    
69  #endif /* !_DIDEROT_INLINE_MATRIX_H_ */  #endif /* !_DIDEROT_INLINE_MATRIX_H_ */

Legend:
Removed from v.728  
changed lines
  Added in v.729

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0