Home My Page Projects Code Snippets Project Openings diderot

# SCM Repository

[diderot] Diff of /branches/pure-cfg/src/lib/c-target/eigen3x3.c
 [diderot] / branches / pure-cfg / src / lib / c-target / eigen3x3.c

# Diff of /branches/pure-cfg/src/lib/c-target/eigen3x3.c

branches/pure-cfg/src/lib/c-target/eigen.c revision 1543, Mon Oct 17 19:53:03 2011 UTC branches/pure-cfg/src/lib/c-target/eigen3x3.c revision 1544, Tue Oct 18 13:07:58 2011 UTC
# Line 77  Line 77
77  #else  #else
78  # error unable to access elements of host vectors  # error unable to access elements of host vectors
79  #endif  #endif
80
81  /*  /*
82  ** All the three given vectors span only a 2D space, and this finds  ** All the three given vectors span only a 2D space, and this finds
83  ** the normal to that plane.  Simply sums up all the pair-wise  ** the normal to that plane.  Simply sums up all the pair-wise
# Line 112  Line 113
113  ** All vectors are in the same 1D space, we have to find two  ** All vectors are in the same 1D space, we have to find two
114  ** mutually vectors perpendicular to that span  ** mutually vectors perpendicular to that span
115  */  */
116  void  static void nullspace2 (Diderot_vec3_t rets[2],
nullspace2(Diderot_vec3_t rets[2],
117      const Diderot_vec3_t r0,      const Diderot_vec3_t r0,
118      const Diderot_vec3_t r1,      const Diderot_vec3_t r1,
119      const Diderot_vec3_t r2)      const Diderot_vec3_t r2)
# Line 171  Line 171
171  ** setting of epsilon seems pretty arbitrary at this point...  ** setting of epsilon seems pretty arbitrary at this point...
172  **  **
173  */  */
174  int Diderot_evals (  int Diderot_evals3x3 (
175          Diderot_real_t eval[3],          Diderot_real_t eval[3],
176          const Diderot_real_t _M00, const Diderot_real_t _M01, const Diderot_real_t _M02,          const Diderot_real_t _M00, const Diderot_real_t _M01, const Diderot_real_t _M02,
177          const Diderot_real_t _M11, const Diderot_real_t _M12,          const Diderot_real_t _M11, const Diderot_real_t _M12,
# Line 271  Line 271
271      return roots;      return roots;
272  }  }
273
274  int evals_evecs(  int Diderot_evecs3x3 (
275          Diderot_real_t eval[3], Diderot_vec3_t evecs[3],          Diderot_real_t eval[3], Diderot_vec3_t evecs[3],
276          const Diderot_real_t _M00, const Diderot_real_t _M01, const Diderot_real_t _M02,          const Diderot_real_t _M00, const Diderot_real_t _M01, const Diderot_real_t _M02,
277          const Diderot_real_t _M11, const Diderot_real_t _M12,          const Diderot_real_t _M11, const Diderot_real_t _M12,

Legend:
 Removed from v.1543 changed lines Added in v.1544