Main Page | Modules | Class List | Directories | File List | Class Members | File Members

3x3matrixf.h

Go to the documentation of this file.
00001 
00014 /* This library is free software; you can redistribute it and/or
00015    modify it under the terms of the GNU Lesser General Public
00016    License as published by the Free Software Foundation; either
00017    version 2.1 of the License, or (at your option) any later version.
00018 
00019    This library is distributed in the hope that it will be useful,
00020    but WITHOUT ANY WARRANTY; without even the implied warranty of
00021    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00022    Lesser General Public License for more details.
00023 
00024    You should have received a copy of the GNU Lesser General Public
00025    License along with this library; if not, write to the Free Software
00026    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00027 */
00028 
00029 #ifndef _GAN_3X3MATRIXF_H
00030 #define _GAN_3X3MATRIXF_H
00031 
00032 #include <stdlib.h>
00033 #include <stdio.h>
00034 #include <math.h>
00035 #include <gandalf/common/misc_defs.h>
00049 /* This library is free software; you can redistribute it and/or
00050    modify it under the terms of the GNU Lesser General Public
00051    License as published by the Free Software Foundation; either
00052    version 2.1 of the License, or (at your option) any later version.
00053 
00054    This library is distributed in the hope that it will be useful,
00055    but WITHOUT ANY WARRANTY; without even the implied warranty of
00056    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00057    Lesser General Public License for more details.
00058 
00059    You should have received a copy of the GNU Lesser General Public
00060    License along with this library; if not, write to the Free Software
00061    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00062 */
00063 
00064 #ifndef _GAN_REPEAT33_H
00065 #define _GAN_REPEAT33_H
00066 
00080 /* This library is free software; you can redistribute it and/or
00081    modify it under the terms of the GNU Lesser General Public
00082    License as published by the Free Software Foundation; either
00083    version 2.1 of the License, or (at your option) any later version.
00084 
00085    This library is distributed in the hope that it will be useful,
00086    but WITHOUT ANY WARRANTY; without even the implied warranty of
00087    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00088    Lesser General Public License for more details.
00089 
00090    You should have received a copy of the GNU Lesser General Public
00091    License along with this library; if not, write to the Free Software
00092    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00093 */
00094 
00095 #ifndef _GAN_REPEAT1_H
00096 #define _GAN_REPEAT1_H
00097 
00098 #ifdef __cplusplus
00099 extern "C" {
00100 #endif
00101 
00102 /* macros for constructing one-fold repetitions (for consistency) */
00103 #define GAN_REP1_AS(a,b,p1) (a p1 b)
00104 #define GAN_REP1_A(a,p1) (a p1)
00105 #define GAN_REP1_A_C(a,b) GAN_REP1_A(a,b,x)
00106 
00107 #define GAN_FREP1_A(a,b,p1,q1) (a p1 b q1)
00108 #define GAN_FREP1_A_C(a,b,p1) GAN_FREP1_A(a,b,x,p1)
00109 
00110 #define GAN_REP1_ABS(a,b,c,p1,q1) (a p1 b q1 c)
00111 #define GAN_REP1_AAS(a,b,c,p1) GAN_REP1_ABS(a,b,c,p1,p1)
00112 #define GAN_REP1_AAS_C(a,b,c) GAN_REP1_AAS(a,b,c,x)
00113 
00114 #define GAN_REP1_AB(a,b,p1,q1) (a p1 b q1)
00115 #define GAN_REP1_AA(a,b,p1) GAN_REP1_AB(a,b,p1,p1)
00116 #define GAN_REP1_AA_C(a,b) GAN_REP1_AA(a,b,x)
00117 
00118 #define GAN_REP1_ABCS(a,b,c,d,p1,q1,r1) (a p1 b q1 c r1 d)
00119 #define GAN_REP1_ABC(a,b,c,p1,q1,r1) (a p1 b q1 c r1)
00120 #define GAN_REP1_AAA(a,b,c,p1) GAN_REP1_ABC(a,b,c,p1,p1,p1)
00121 #define GAN_REP1_AAA_C(a,b,c) GAN_REP1_AAA(a,b,c,x)
00122 
00123 #define GAN_REP1_OP_AB(a,b,p1,q1,op) (a p1 b q1)
00124 #define GAN_REP1_OP_AA(a,b,p1,op) GAN_REP1_OP_AB(a,b,p1,p1,op)
00125 #define GAN_REP1_OP_AA_C(a,b,op) GAN_REP1_OP_AA(a,b,x,op)
00126 
00127 #ifdef __cplusplus
00128 }
00129 #endif
00130 
00131 #endif /* #ifndef _GAN_REPEAT1_H */
00132 
00145 /* This library is free software; you can redistribute it and/or
00146    modify it under the terms of the GNU Lesser General Public
00147    License as published by the Free Software Foundation; either
00148    version 2.1 of the License, or (at your option) any later version.
00149 
00150    This library is distributed in the hope that it will be useful,
00151    but WITHOUT ANY WARRANTY; without even the implied warranty of
00152    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00153    Lesser General Public License for more details.
00154 
00155    You should have received a copy of the GNU Lesser General Public
00156    License along with this library; if not, write to the Free Software
00157    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00158 */
00159 
00160 #ifndef _GAN_REPEAT2_H
00161 #define _GAN_REPEAT2_H
00162 
00163 #ifdef __cplusplus
00164 extern "C" {
00165 #endif
00166 
00167 /* macros for constructing two-fold repetitions */
00168 #define GAN_REP2_AS(a,b,p1,p2) (a p1 b, a p2 b)
00169 #define GAN_REP2_A(a,p1,p2) (a p1, a p2)
00170 #define GAN_REP2_AS_C(a,b) GAN_REP2_AS(a,b,x,y)
00171 #define GAN_REP2_A_C(a) GAN_REP2_A(a,x,y)
00172 
00173 #define GAN_FREP2_A(a,b,p1,p2,q1,q2) (a p1 b q1, a p2 b q2)
00174 #define GAN_FREP2_A_C(a,b,p1,p2) GAN_FREP2_A(a,b,x,y,p1,p2)
00175 
00176 #define GAN_REP2_AB(a,b,p1,p2,q1,q2) (a p1 b q1, a p2 b q2)
00177 #define GAN_REP2_AA(a,b,p1,p2) GAN_REP2_AB(a,b,p1,p2,p1,p2)
00178 #define GAN_REP2_AA_C(a,b) GAN_REP2_AA(a,b,x,y)
00179 
00180 #define GAN_REP2_ABS(a,b,c,p1,p2,q1,q2) (a p1 b q1 c, a p2 b q2 c)
00181 #define GAN_REP2_AAS(a,b,c,p1,p2) GAN_REP2_ABS(a,b,c,p1,p2,p1,p2)
00182 #define GAN_REP2_AAS_C(a,b,c) GAN_REP2_AAS(a,b,c,x,y)
00183 
00184 #define GAN_REP2_AB(a,b,p1,p2,q1,q2) (a p1 b q1, a p2 b q2)
00185 #define GAN_REP2_AA(a,b,p1,p2) GAN_REP2_AB(a,b,p1,p2,p1,p2)
00186 #define GAN_REP2_AA_C(a,b) GAN_REP2_AA(a,b,x,y)
00187 
00188 #define GAN_REP2_ABCS(a,b,c,d,p1,p2,q1,q2,r1,r2)\
00189            (a p1 b q1 c r1 d, a p2 b q2 c r2 d)
00190 #define GAN_REP2_ABC(a,b,c,p1,p2,q1,q2,r1,r2)\
00191            (a p1 b q1 c r1, a p2 b q2 c r2)
00192 #define GAN_REP2_AAA(a,b,c,p1,p2) GAN_REP2_ABC(a,b,c,p1,p2,p1,p2,p1,p2)
00193 #define GAN_REP2_AAA_C(a,b,c) GAN_REP2_AAA(a,b,c,x,y)
00194 
00195 #define GAN_REP2_OP_AB(a,b,p1,p2,q1,q2,op)\
00196            (a p1 b q1 op a p2 b q2)
00197 #define GAN_REP2_OP_AA(a,b,p1,p2,op) GAN_REP2_OP_AB(a,b,p1,p2,p1,p2,op)
00198 #define GAN_REP2_OP_AA_C(a,b,op) GAN_REP2_OP_AA(a,b,x,y,op)
00199 
00200 #ifdef __cplusplus
00201 }
00202 #endif
00203 
00204 #endif /* #ifndef _GAN_REPEAT2_H */
00205 
00218 /* This library is free software; you can redistribute it and/or
00219    modify it under the terms of the GNU Lesser General Public
00220    License as published by the Free Software Foundation; either
00221    version 2.1 of the License, or (at your option) any later version.
00222 
00223    This library is distributed in the hope that it will be useful,
00224    but WITHOUT ANY WARRANTY; without even the implied warranty of
00225    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00226    Lesser General Public License for more details.
00227 
00228    You should have received a copy of the GNU Lesser General Public
00229    License along with this library; if not, write to the Free Software
00230    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00231 */
00232 
00233 #ifndef _GAN_REPEAT3_H
00234 #define _GAN_REPEAT3_H
00235 
00236 #ifdef __cplusplus
00237 extern "C" {
00238 #endif
00239 
00240 /* macros for constructing three-fold repetitions */
00241 #define GAN_REP3_AS(a,b,p1,p2,p3) (a p1 b, a p2 b, a p3 b)
00242 #define GAN_REP3_AS_C(a,b) GAN_REP3_AS(a,b,x,y,z)
00243 #define GAN_REP3_A(a,p1,p2,p3) (a p1, a p2, a p3)
00244 #define GAN_REP3_A_C(a) GAN_REP3_A(a,x,y,z)
00245 
00246 #define GAN_FREP3_A(a,b,p1,p2,p3,q1,q2,q3) (a p1 b q1, a p2 b q2, a p3 b q3)
00247 #define GAN_FREP3_A_C(a,b,p1,p2,p3) GAN_FREP3_A(a,b,x,y,z,p1,p2,p3)
00248 
00249 
00250 #define GAN_REP3_ABS(a,b,c,p1,p2,p3,q1,q2,q3)\
00251            (a p1 b q1 c, a p2 b q2 c, a p3 b q3 c)
00252 #define GAN_REP3_AAS(a,b,c,p1,p2,p3) GAN_REP3_ABS(a,b,c,p1,p2,p3,p1,p2,p3)
00253 #define GAN_REP3_AAS_C(a,b,c) GAN_REP3_AAS(a,b,c,x,y,z)
00254 
00255 #define GAN_REP3_AB(a,b,p1,p2,p3,q1,q2,q3)\
00256            (a p1 b q1, a p2 b q2, a p3 b q3)
00257 #define GAN_REP3_AA(a,b,p1,p2,p3) GAN_REP3_AB(a,b,p1,p2,p3,p1,p2,p3)
00258 #define GAN_REP3_AA_C(a,b) GAN_REP3_AA(a,b,x,y,z)
00259 
00260 #define GAN_REP3_ABCS(a,b,c,d,p1,p2,p3,q1,q2,q3,r1,r2,r3)\
00261            (a p1 b q1 c r1 d, a p2 b q2 c r2 d, a p3 b q3 c r3 d)
00262 #define GAN_REP3_ABC(a,b,c,p1,p2,p3,q1,q2,q3,r1,r2,r3)\
00263            (a p1 b q1 c r1, a p2 b q2 c r2, a p3 b q3 c r3)
00264 #define GAN_REP3_AAA(a,b,c,p1,p2,p3)\
00265         GAN_REP3_ABC(a,b,c,p1,p2,p3,p1,p2,p3,p1,p2,p3)
00266 #define GAN_REP3_AAA_C(a,b,c) GAN_REP3_AAA(a,b,c,x,y,z)
00267 
00268 #define GAN_REP3_OP_AB(a,b,p1,p2,p3,q1,q2,q3,op)\
00269            (a p1 b q1 op a p2 b q2 op a p3 b q3)
00270 #define GAN_REP3_OP_AA(a,b,p1,p2,p3,op)\
00271            GAN_REP3_OP_AB(a,b,p1,p2,p3,p1,p2,p3,op)
00272 #define GAN_REP3_OP_AA_C(a,b,op) GAN_REP3_OP_AA(a,b,x,y,z,op)
00273 
00274 #ifdef __cplusplus
00275 }
00276 #endif
00277 
00278 #endif /* #ifndef _GAN_REPEAT3_H */
00279 
00280 #ifdef __cplusplus
00281 extern "C" {
00282 #endif
00283 
00284 /* macros for constructing dual two-fold repetitions */
00285 
00286 #define GAN_FREP33_A(a,b,p1,p2,p3,q1,q2,q3,r11,r12,r13,r21,r22,r23,r31,r32,r33)            (GAN_FREP3_A(a,b,p1##q1,p1##q2,p1##q3,r11,r12,r13),\
00287              GAN_FREP3_A(a,b,p2##q1,p2##q2,p2##q3,r21,r22,r23),\
00288              GAN_FREP3_A(a,b,p3##q1,p3##q2,p3##q3,r31,r32,r33))
00289 #define GAN_FREP33_A_C(a,b,r11,r12,r13,r21,r22,r23,r31,r32,r33) \
00290            GAN_FREP33_A(a,b,x,y,z,x,y,z,r11,r12,r13,r21,r22,r23,r31,r32,r33)
00291 
00292 /* most general macros */
00293 #define GAN_REP33_ABCS(a,b,c,d,p1,p2,p3,q1,q2,q3,r1,r2,r3,s1,s2,s3,t1,t2,t3,u1,u2,u3)\
00294  (GAN_REP3_ABCS(a,b,c,d,p1##q1,p1##q2,p1##q3,r1##s1,r1##s2,r1##s3,t1##u1,t1##u2,t1##u3),\
00295   GAN_REP3_ABCS(a,b,c,d,p2##q1,p2##q2,p2##q3,r2##s1,r2##s2,r2##s3,t2##u1,t2##u2,t2##u3),\
00296   GAN_REP3_ABCS(a,b,c,d,p3##q1,p3##q2,p3##q3,r3##s1,r3##s2,r3##s3,t3##u1,t3##u2,t3##u3))
00297 #define GAN_REP33_ABC(a,b,c,p1,p2,p3,q1,q2,q3,r1,r2,r3,s1,s2,s3,t1,t2,t3,u1,u2,u3)\
00298  (GAN_REP3_ABC(a,b,c,p1##q1,p1##q2,p1##q3,r1##s1,r1##s2,r1##s3,t1##u1,t1##u2,t1##u3),\
00299   GAN_REP3_ABC(a,b,c,p2##q1,p2##q2,p2##q3,r2##s1,r2##s2,r2##s3,t2##u1,t2##u2,t2##u3),\
00300   GAN_REP3_ABC(a,b,c,p3##q1,p3##q2,p3##q3,r3##s1,r3##s2,r3##s3,t3##u1,t3##u2,t3##u3))
00301 
00302 #define GAN_REP33_AAAS(a,b,c,d,p1,p2,p3,q1,q2,q3)\
00303   GAN_REP33_ABCS(a,b,c,d,p1,p2,p3,q1,q2,q3,p1,p2,p3,q1,q2,q3,p1,p2,p3,q1,q2,q3)
00304 #define GAN_REP33_AAA(a,b,c,p1,p2,p3,q1,q2,q3)\
00305    GAN_REP33_ABC(a,b,c,p1,p2,p3,q1,q2,q3,p1,p2,p3,q1,q2,q3,p1,p2,p3,q1,q2,q3)
00306 
00307 #define GAN_REP33_ABS(a,b,c,p1,p2,p3,q1,q2,q3,r1,r2,r3,s1,s2,s3)\
00308  (GAN_REP3_ABS(a,b,c,p1##q1,p1##q2,p1##q3,r1##s1,r1##s2,r1##s3),\
00309   GAN_REP3_ABS(a,b,c,p2##q1,p2##q2,p2##q3,r2##s1,r2##s2,r2##s3),\
00310   GAN_REP3_ABS(a,b,c,p3##q1,p3##q2,p3##q3,r3##s1,r3##s2,r3##s3))
00311 #define GAN_REP33_AB(a,b,p1,p2,p3,q1,q2,q3,r1,r2,r3,s1,s2,s3)\
00312  (GAN_REP3_AB(a,b,p1##q1,p1##q2,p1##q3,r1##s1,r1##s2,r1##s3),\
00313   GAN_REP3_AB(a,b,p2##q1,p2##q2,p2##q3,r2##s1,r2##s2,r2##s3),\
00314   GAN_REP3_AB(a,b,p3##q1,p3##q2,p3##q3,r3##s1,r3##s2,r3##s3))
00315 
00316 #define GAN_REP33_AAS(a,b,c,p1,p2,p3,q1,q2,q3)\
00317             GAN_REP33_ABS(a,b,c,p1,p2,p3,q1,q2,q3,p1,p2,p3,q1,q2,q3)
00318 #define GAN_REP33_AA(a,b,p1,p2,p3,q1,q2,q3)\
00319             GAN_REP33_AB(a,b,p1,p2,p3,q1,q2,q3,p1,p2,p3,q1,q2,q3)
00320 
00321 #define GAN_REP33_AS(a,b,p1,p2,p3,q1,q2,q3)\
00322  (GAN_REP3_AS(a,b,p1##q1,p1##q2,p1##q3),\
00323   GAN_REP3_AS(a,b,p2##q1,p2##q2,p2##q3),\
00324   GAN_REP3_AS(a,b,p3##q1,p3##q2,p3##q3))
00325 #define GAN_REP33_A(a,p1,p2,p3,q1,q2,q3)\
00326  (GAN_REP3_A(a,p1##q1,p1##q2,p1##q3),\
00327   GAN_REP3_A(a,p2##q1,p2##q2,p2##q3),\
00328   GAN_REP3_A(a,p3##q1,p3##q2,p3##q3))
00329 
00330 /* macros specific to xx, xy etc coordinates */
00331 #define GAN_REP33_AS_C(a,b) GAN_REP33_AS(a,b,x,y,z,x,y,z)
00332 #define GAN_REP33_AAS_C(a,b,c) GAN_REP33_AAS(a,b,c,x,y,z,x,y,z)
00333 #define GAN_REP33_AAAS_C(a,b,c,d) GAN_REP33_AAAS(a,b,c,d,x,y,z,x,y,z)
00334 #define GAN_REP33_A_C(a) GAN_REP33_A(a,x,y,z,x,y,z)
00335 #define GAN_REP33_AA_C(a,b) GAN_REP33_AA(a,b,x,y,z,x,y,z)
00336 #define GAN_REP33_AAA_C(a,b,c) GAN_REP33_AAA(a,b,c,x,y,z,x,y,z)
00337 
00338 /* macro for transpose operation */
00339 #define GAN_REP33_AAT(a,b,p1,p2,p3,q1,q2,q3)\
00340  (GAN_REP3_AB(a,b,p1##q1,p1##q2,p1##q3,p1##q1,p2##q1,p3##q1),\
00341   GAN_REP3_AB(a,b,p2##q1,p2##q2,p2##q3,p1##q2,p2##q2,p3##q2),\
00342   GAN_REP3_AB(a,b,p3##q1,p3##q2,p3##q3,p1##q3,p2##q3,p3##q3))
00343 #define GAN_REP33_AAT_C(a,b) GAN_REP33_AAT(a,b,x,y,z,x,y,z)
00344 
00345 /* macros for operations on lower triangle of matrices only */
00346 #define GAN_FREP33L_A(a,b,p1,p2,p3,q1,q2,q3,r11,r21,r22,r31,r32,r33)\
00347  (GAN_FREP1_A(a,b,p1##q1,r11),\
00348   GAN_FREP2_A(a,b,p2##q1,p2##q2,r21,r22),\
00349   GAN_FREP3_A(a,b,p3##q1,p3##q2,p3##q3,r31,r32,r33))
00350 #define GAN_FREP33L_A_C(a,b,r11,r21,r22,r31,r32,r33) \
00351            GAN_FREP33L_A(a,b,x,y,z,x,y,z,r11,r21,r22,r31,r32,r33)
00352 
00353 #define GAN_REP33L_ABCS(a,b,c,d,p1,p2,p3,q1,q2,q3,r1,r2,r3,s1,s2,s3,t1,t2,t3,u1,u2,u3)\
00354  (GAN_REP1_ABCS(a,b,c,d,p1##q1,r1##s1,t1##u1),\
00355   GAN_REP2_ABCS(a,b,c,d,p2##q1,p2##q2,r2##s1,r2##s2,t2##u1,t2##u2),\
00356   GAN_REP3_ABCS(a,b,c,d,p3##q1,p3##q2,p3##q3,r3##s1,r3##s2,r3##s3,t3##u1,t3##u2,t3##u3))
00357 #define GAN_REP33L_ABC(a,b,c,p1,p2,p3,q1,q2,q3,r1,r2,r3,s1,s2,s3,t1,t2,t3,u1,u2,u3)\
00358  (GAN_REP1_ABC(a,b,c,p1##q1,r1##s1,t1##u1),\
00359   GAN_REP2_ABC(a,b,c,p2##q1,p2##q2,r2##s1,r2##s2,t2##u1,t2##u2),\
00360   GAN_REP3_ABC(a,b,c,p3##q1,p3##q2,p3##q3,r3##s1,r3##s2,r3##s3,t3##u1,t3##u2,t3##u3))
00361 #define GAN_REP33L_AAAS(a,b,c,d,p1,p2,p3,q1,q2,q3)\
00362            GAN_REP33L_ABCS(a,b,c,d,p1,p2,p3,q1,q2,q3,p1,p2,p3,q1,q2,q3,p1,p2,p3,q1,q2,q3)
00363 #define GAN_REP33L_AAA(a,b,c,p1,p2,p3,q1,q2,q3)\
00364            GAN_REP33L_ABC(a,b,c,p1,p2,p3,q1,q2,q3,p1,p2,p3,q1,q2,q3,p1,p2,p3,q1,q2,q3)
00365 #define GAN_REP33L_ABS(a,b,c,p1,p2,p3,q1,q2,q3,r1,r2,r3,s1,s2,s3)\
00366  (GAN_REP1_ABS(a,b,c,p1##q1,r1##s1),\
00367   GAN_REP2_ABS(a,b,c,p2##q1,p2##q2,r2##s1,r2##s2),\
00368   GAN_REP3_ABS(a,b,c,p3##q1,p3##q2,p3##q3,r3##s1,r3##s2,r3##s3))
00369 #define GAN_REP33L_AB(a,b,p1,p2,p3,q1,q2,q3,r1,r2,r3,s1,s2,s3)\
00370  (GAN_REP1_AB(a,b,p1##q1,r1##s1),\
00371   GAN_REP2_AB(a,b,p2##q1,p2##q2,r2##s1,r2##s2),\
00372   GAN_REP3_AB(a,b,p3##q1,p3##q2,p3##q3,r3##s1,r3##s2,r3##s3))
00373 #define GAN_REP33L_AAS(a,b,c,p1,p2,p3,q1,q2,q3)\
00374            GAN_REP33L_ABS(a,b,c,p1,p2,p3,q1,q2,q3,p1,p2,p3,q1,q2,q3)
00375 #define GAN_REP33L_AA(a,b,p1,p2,p3,q1,q2,q3)\
00376            GAN_REP33L_AB(a,b,p1,p2,p3,q1,q2,q3,p1,p2,p3,q1,q2,q3)
00377 #define GAN_REP33L_AS(a,b,p1,p2,p3,q1,q2,q3)\
00378  (GAN_REP1_AS(a,b,p1##q1),\
00379   GAN_REP2_AS(a,b,p2##q1,p2##q2),\
00380   GAN_REP3_AS(a,b,p3##q1,p3##q2,p3##q3))
00381 #define GAN_REP33L_A(a,p1,p2,p3,q1,q2,q3)\
00382  (GAN_REP1_A(a,p1##q1),\
00383   GAN_REP2_A(a,p2##q1,p2##q2),\
00384   GAN_REP3_A(a,p3##q1,p3##q2,p3##q3))
00385 #define GAN_REP33L_AS_C(a,b) GAN_REP33L_AS(a,b,x,y,z,x,y,z)
00386 #define GAN_REP33L_AAS_C(a,b,c) GAN_REP33L_AAS(a,b,c,x,y,z,x,y,z)
00387 #define GAN_REP33L_AAAS_C(a,b,c,d) GAN_REP33L_AAAS(a,b,c,d,x,y,z,x,y,z)
00388 #define GAN_REP33L_A_C(a) GAN_REP33L_A(a,x,y,z,x,y,z)
00389 #define GAN_REP33L_AA_C(a,b) GAN_REP33L_AA(a,b,x,y,z,x,y,z)
00390 #define GAN_REP33L_AAA_C(a,b,c) GAN_REP33L_AAA(a,b,c,x,y,z,x,y,z)
00391 #define GAN_FREP33L_A_C(a,b,r11,r21,r22,r31,r32,r33)\
00392            GAN_FREP33L_A(a,b,x,y,z,x,y,z,r11,r21,r22,r31,r32,r33)
00393 
00394 #ifdef __cplusplus
00395 }
00396 #endif
00397 
00398 #endif /* #ifndef _GAN_REPEAT33_H */
00399 #include <gandalf/linalg/3vectorf.h>
00400 #include <gandalf/linalg/2x2matrixf.h>
00414 /* This library is free software; you can redistribute it and/or
00415    modify it under the terms of the GNU Lesser General Public
00416    License as published by the Free Software Foundation; either
00417    version 2.1 of the License, or (at your option) any later version.
00418 
00419    This library is distributed in the hope that it will be useful,
00420    but WITHOUT ANY WARRANTY; without even the implied warranty of
00421    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00422    Lesser General Public License for more details.
00423 
00424    You should have received a copy of the GNU Lesser General Public
00425    License along with this library; if not, write to the Free Software
00426    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00427 */
00428 
00429 #endif /* #ifndef _GAN_MATVECF_MACROS_H */
00430 #include <gandalf/linalg/matf_gen.h>
00431 #include <gandalf/linalg/matf_square.h>
00432 
00433 #ifdef __cplusplus
00434 extern "C" {
00435 #endif
00436 
00447 
00448 typedef struct Gan_Matrix33_f
00449 {
00450    float xx, xy, xz,
00451          yx, yy, yz,
00452          zx, zy, zz;
00453 } Gan_Matrix33_f;
00454 
00455 #ifndef NDEBUG
00456 
00457 typedef enum { GAN_SYMMETRIC_MATRIX33_F, GAN_LOWER_TRI_MATRIX33_F }
00458  Gan_SquMatrix33Type_f;
00459 #endif /* #ifndef NDEBUG */
00460 
00462 typedef struct Gan_SquMatrix33_f
00463 {
00464 #ifndef NDEBUG
00465    /* square matrix type, for setting and checking in debug mode */
00466    Gan_SquMatrix33Type_f type;
00467 #endif /* #ifndef NDEBUG */
00468 
00469    /* matrix data */
00470    float xx,
00471          yx, yy,
00472          zx, zy, zz;
00473 } Gan_SquMatrix33_f;
00474 
00475 /* matrix definitions specific to 3x3 matrices */
00476 #define GAN_ST33F_FILL(A,t,XX,YX,YY,ZX,ZY,ZZ)\
00477            (GAN_TEST_OP1(A,Gan_SquMatrix33_f),gan_eval((A)->type=t),\
00478             GAN_FREP33L_A_C((A)->,=,(XX),(YX),(YY),(ZX),(ZY),(ZZ)))
00479 #define GAN_ST33F_IDENT(A,t)\
00480            (GAN_TEST_OP1(A,Gan_SquMatrix33_f),gan_eval((A)->type=t),\
00481             GAN_FREP33L_A_C((A)->,=,1.0,0.0,1.0,0.0,0.0,1.0))
00482 
00483 /* generic matrix multiply operations */
00484 #define GAN_MAT33F_MULT1D(a,b,c,p1,p2,p3,q1,q2,q3)\
00485  (a p1 = GAN_REP3_OP_AB(b,* c,xx,xy,xz,q1,q2,q3,+),\
00486   a p2 = GAN_REP3_OP_AB(b,* c,yx,yy,yz,q1,q2,q3,+),\
00487   a p3 = GAN_REP3_OP_AB(b,* c,zx,zy,zz,q1,q2,q3,+))
00488 #define GAN_MAT33TF_MULT1D(a,b,c,p1,p2,p3,q1,q2,q3)\
00489  (a p1 = GAN_REP3_OP_AB(b,* c,xx,yx,zx,q1,q2,q3,+),\
00490   a p2 = GAN_REP3_OP_AB(b,* c,xy,yy,zy,q1,q2,q3,+),\
00491   a p3 = GAN_REP3_OP_AB(b,* c,xz,yz,zz,q1,q2,q3,+))
00492 
00493 /* symmetric matrix multiply operation */
00494 #define GAN_SYM33F_MULT1D(a,b,c,p1,p2,p3,q1,q2,q3)\
00495  (a p1 = GAN_REP3_OP_AB(b,* c,xx,yx,zx,q1,q2,q3,+),\
00496   a p2 = GAN_REP3_OP_AB(b,* c,yx,yy,zy,q1,q2,q3,+),\
00497   a p3 = GAN_REP3_OP_AB(b,* c,zx,zy,zz,q1,q2,q3,+))
00498 
00499 /* lower triangular matrix multiply operations */
00500 #define GAN_LOW33F_MULT1D(a,b,c,p1,p2,p3,q1,q2,q3)\
00501  (a p3 = GAN_REP3_OP_AB(b,* c,zx,zy,zz,q1,q2,q3,+),\
00502   a p2 = GAN_REP2_OP_AB(b,* c,yx,yy,q1,q2,+),\
00503   a p1 = GAN_REP1_OP_AB(b,* c,xx,q1,+))
00504 #define GAN_LOW33IF_MULT1D(a,b,c,p1,p2,p3,q1,q2,q3)\
00505  (a p1 =  c q1 / b xx,\
00506   a p2 = (c q2 - b yx * a p1) / b yy,\
00507   a p3 = (c q3 - b zx * a p1 - b zy * a p2) / b zz)
00508 
00509 /* upper triangular matrix multiply operations */
00510 #define GAN_UPP33F_MULT1D(a,b,c,p1,p2,p3,q1,q2,q3)\
00511  (a p1 = GAN_REP3_OP_AB(b,* c,xx,yx,zx,q1,q2,q3,+),\
00512   a p2 = GAN_REP2_OP_AB(b,* c,yy,zy,q2,q3,+),\
00513   a p3 = GAN_REP1_OP_AB(b,* c,zz,q3,+))
00514 #define GAN_UPP33IF_MULT1D(a,b,c,p1,p2,p3,q1,q2,q3)\
00515  (a p3 =  c q3 / b zz,\
00516   a p2 = (c q2 - b zy * a p3) / b yy,\
00517   a p1 = (c q1 - b yx * a p2 - b zx * a p3) / b xx)
00518 
00519 /* symmetric/lower triangular square matrix definitions */
00520 #define GAN_ST33F_ZERO(A,t)\
00521            (GAN_TEST_OP1(A,Gan_SquMatrix33_f), gan_eval((A)->type=t),\
00522             GAN_REP33L_AS_C((A)->,=0.0))
00523 #define GAN_ST33F_COPY(A,B,t)\
00524            (GAN_TEST_OP2(A,B,Gan_SquMatrix33_f,Gan_SquMatrix33_f),\
00525             assert((A)->type==t), gan_eval((B)->type=(A)->type),\
00526             GAN_REP33L_AA_C((B)->,=(A)->))
00527 #define GAN_ST33F_SCALE(A,a,B,t)\
00528            (GAN_TEST_OP2(A,B,Gan_SquMatrix33_f,Gan_SquMatrix33_f),\
00529             assert((A)->type==t), gan_eval((B)->type=(A)->type),\
00530             GAN_REP33L_AAS_C((B)->,=(A)->,*(a)))
00531 #define GAN_ST33F_DIVIDE(A,a,B,t)\
00532            (GAN_TEST_OP2(A,B,Gan_SquMatrix33_f,Gan_SquMatrix33_f),\
00533             assert((A)->type==t), gan_eval((B)->type=(A)->type),\
00534             GAN_REP33L_AAS_C((B)->,=(A)->,/(a)))
00535 #define GAN_ST33F_NEGATE(A,B,t)\
00536            (GAN_TEST_OP2(A,B,Gan_SquMatrix33_f,Gan_SquMatrix33_f),\
00537             assert((A)->type==t), gan_eval((B)->type=(A)->type),\
00538             GAN_REP33L_AA_C((B)->,=-(A)->))
00539 #define GAN_ST33F_ADD(A,B,C,t)\
00540          (GAN_TEST_OP3(A,B,C,Gan_SquMatrix33_f,Gan_SquMatrix33_f,Gan_SquMatrix33_f),\
00541           assert((A)->type==t && (B)->type==t), gan_eval((C)->type=(A)->type),\
00542           GAN_REP33L_AAA_C((C)->,=(A)->,+(B)->))
00543 #define GAN_ST33F_SUB(A,B,C,t)\
00544          (GAN_TEST_OP3(A,B,C,Gan_SquMatrix33_f,Gan_SquMatrix33_f,Gan_SquMatrix33_f),\
00545           assert((A)->type==t && (B)->type==t), gan_eval((C)->type=(A)->type),\
00546           GAN_REP33L_AAA_C((C)->,=(A)->,-(B)->))
00547 
00548 /* declare functions specific to generic 3x3 matrices */
00562 /* This library is free software; you can redistribute it and/or
00563    modify it under the terms of the GNU Lesser General Public
00564    License as published by the Free Software Foundation; either
00565    version 2.1 of the License, or (at your option) any later version.
00566 
00567    This library is distributed in the hope that it will be useful,
00568    but WITHOUT ANY WARRANTY; without even the implied warranty of
00569    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00570    Lesser General Public License for more details.
00571 
00572    You should have received a copy of the GNU Lesser General Public
00573    License along with this library; if not, write to the Free Software
00574    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00575 */
00576 
00577 #ifndef _GAN_3X3MATF_H
00578 
00595 Gan_Matrix33_f *gan_mat33f_fill_q ( Gan_Matrix33_f *A,
00596                                     float XX, float XY, float XZ,
00597                                     float YX, float YY, float YZ,
00598                                     float ZX, float ZY, float ZZ );
00599 
00624 Gan_Matrix33_f *gan_mat33f_cross_q ( const Gan_Vector3_f *p, Gan_Matrix33_f *A );
00625 
00647 void gan_mat33f_get_rows_q ( const Gan_Matrix33_f *A,
00648                              Gan_Vector3_f *p, Gan_Vector3_f *q,
00649                              Gan_Vector3_f *r );
00650 
00662 void gan_mat33f_get_cols_q ( const Gan_Matrix33_f *A,
00663                              Gan_Vector3_f *p, Gan_Vector3_f *q,
00664                              Gan_Vector3_f *r );
00665 
00673 Gan_Matrix22_f *gan_mat33f_get_m22tl_q ( const Gan_Matrix33_f *A,
00674                                          Gan_Matrix22_f *B );
00675 
00683 Gan_Vector2_f *gan_mat33f_get_v2tr_q ( const Gan_Matrix33_f *A, Gan_Vector2_f *p );
00684 
00698 void gan_mat33f_get_parts_q ( const Gan_Matrix33_f *A, Gan_Matrix22_f *B,
00699                               Gan_Vector2_f *p, Gan_Vector2_f *q, float *s );
00700 
00723 Gan_Matrix33_f *gan_mat33f_set_parts_q ( Gan_Matrix33_f *A, const Gan_Matrix22_f *B,
00724                                          const Gan_Vector2_f *p, const Gan_Vector2_f *q,
00725                                          float s );
00726 
00738 Gan_Matrix33_f *gan_mat33f_set_cols_q ( Gan_Matrix33_f *A,
00739                                         const Gan_Vector3_f *p, const Gan_Vector3_f *q,
00740                                         const Gan_Vector3_f *r );
00741 
00754 Gan_Matrix33_f *gan_mat33f_set_rows_q ( Gan_Matrix33_f *A,
00755                                         const Gan_Vector3_f *p, const Gan_Vector3_f *q,
00756                                         const Gan_Vector3_f *r );
00757 
00763 #endif /* #ifndef _GAN_3X3MATF_H */
00764 
00765 #define GAN_MATTYPE Gan_Matrix33_f
00766 #define GAN_MATRIX_TYPE Gan_Matrix_f
00767 #define GAN_SQUMATRIX_TYPE Gan_SquMatrix_f
00768 #define GAN_VECTOR_TYPE Gan_Vector_f
00769 #define GAN_MAT_ELEMENT_TYPE GAN_FLOAT
00770 #define GAN_REALTYPE float
00771 #define GAN_FWRITE_LENDIAN gan_fwrite_lendian_f32
00772 #define GAN_FREAD_LENDIAN  gan_fread_lendian_f32
00773 #define GAN_VECTYPE1 Gan_Vector3_f
00774 #define GAN_VECTYPE2 Gan_Vector3_f
00775 #define GAN_MATTYPEL Gan_Matrix33_f
00776 #define GAN_MATTYPER Gan_Matrix33_f
00777 #define GAN_SQUMATTYPEL Gan_SquMatrix33_f
00778 #define GAN_SQUMATTYPER Gan_SquMatrix33_f
00779 #define GAN_MAT_FPRINT                     gan_mat33f_fprint
00780 #define GAN_MAT_PRINT                      gan_mat33f_print
00781 #define GAN_MAT_FSCANF                     gan_mat33f_fscanf
00782 #define GAN_MAT_FWRITE                     gan_mat33f_fwrite
00783 #define GAN_MAT_FREAD                      gan_mat33f_fread
00784 #define GAN_MAT_ZERO_Q                     gan_mat33f_zero_q
00785 #define GAN_MAT_ZERO_S                     gan_mat33f_zero_s
00786 #define GAN_MAT_COPY_Q                     gan_mat33f_copy_q
00787 #define GAN_MAT_COPY_S                     gan_mat33f_copy_s
00788 #define GAN_MAT_SCALE_Q                    gan_mat33f_scale_q
00789 #define GAN_MAT_SCALE_I                    gan_mat33f_scale_i
00790 #define GAN_MAT_SCALE_S                    gan_mat33f_scale_s
00791 #define GAN_MAT_DIVIDE_Q                   gan_mat33f_divide_q
00792 #define GAN_MAT_DIVIDE_I                   gan_mat33f_divide_i
00793 #define GAN_MAT_DIVIDE_S                   gan_mat33f_divide_s
00794 #define GAN_MAT_NEGATE_Q                   gan_mat33f_negate_q
00795 #define GAN_MAT_NEGATE_I                   gan_mat33f_negate_i
00796 #define GAN_MAT_NEGATE_S                   gan_mat33f_negate_s
00797 #define GAN_MAT_UNIT_Q                     gan_mat33f_unit_q
00798 #define GAN_MAT_UNIT_I                     gan_mat33f_unit_i
00799 #define GAN_MAT_UNIT_S                     gan_mat33f_unit_s
00800 #define GAN_MAT_ADD_Q                      gan_mat33f_add_q
00801 #define GAN_MAT_ADD_I1                     gan_mat33f_add_i1
00802 #define GAN_MAT_ADD_I2                     gan_mat33f_add_i2
00803 #define GAN_MAT_INCREMENT                  gan_mat33f_increment
00804 #define GAN_MAT_ADD_S                      gan_mat33f_add_s
00805 #define GAN_MAT_SUB_Q                      gan_mat33f_sub_q
00806 #define GAN_MAT_SUB_I1                     gan_mat33f_sub_i1
00807 #define GAN_MAT_SUB_I2                     gan_mat33f_sub_i2
00808 #define GAN_MAT_DECREMENT                  gan_mat33f_decrement
00809 #define GAN_MAT_SUB_S                      gan_mat33f_sub_s
00810 #define GAN_VEC_OUTER_Q                    gan_vec33f_outer_q
00811 #define GAN_VEC_OUTER_S                    gan_vec33f_outer_s
00812 #define GAN_MAT_MULTV_Q                    gan_mat33f_multv3_q
00813 #define GAN_MAT_MULTV_S                    gan_mat33f_multv3_s
00814 #define GAN_MATT_MULTV_Q                   gan_mat33Tf_multv3_q
00815 #define GAN_MATT_MULTV_S                   gan_mat33Tf_multv3_s
00816 #define GAN_MAT_LMULTMT_Q                  gan_mat33f_lmultm33T_q
00817 #define GAN_MAT_LMULTMT_S                  gan_mat33f_lmultm33T_s
00818 #define GAN_MAT_RMULTM_Q                   gan_mat33f_rmultm33_q
00819 #define GAN_MAT_RMULTM_S                   gan_mat33f_rmultm33_s
00820 #define GAN_MAT_RMULTMT_Q                  gan_mat33f_rmultm33T_q
00821 #define GAN_MAT_RMULTMT_S                  gan_mat33f_rmultm33T_s
00822 #define GAN_MAT_LMULTMT_SYM_Q              gan_mat33f_lmultm33T_sym_q
00823 #define GAN_MAT_LMULTMT_SYM_S              gan_mat33f_lmultm33T_sym_s
00824 #define GAN_MAT_RMULTMT_SYM_Q              gan_mat33f_rmultm33T_sym_q
00825 #define GAN_MAT_RMULTMT_SYM_S              gan_mat33f_rmultm33T_sym_s
00826 #define GAN_MAT_SLMULTT_Q                  gan_mat33f_slmultT_q
00827 #define GAN_MAT_SLMULTT_S                  gan_mat33f_slmultT_s
00828 #define GAN_MAT_SRMULTT_Q                  gan_mat33f_srmultT_q
00829 #define GAN_MAT_SRMULTT_S                  gan_mat33f_srmultT_s
00830 #define GAN_MAT_LMULTS_Q                   gan_mat33f_lmults33_q
00831 #define GAN_MAT_LMULTS_S                   gan_mat33f_lmults33_s
00832 #define GAN_MAT_RMULTS_Q                   gan_mat33f_rmults33_q
00833 #define GAN_MAT_RMULTS_S                   gan_mat33f_rmults33_s
00834 #define GAN_SYMMATL_LRMULT_Q               gan_symmat33f_lrmultm33T_q
00835 #define GAN_SYMMATL_LRMULT_S               gan_symmat33f_lrmultm33T_s
00836 #define GAN_SYMMATR_LRMULT_Q               gan_symmat33f_lrmultm33_q
00837 #define GAN_SYMMATR_LRMULT_S               gan_symmat33f_lrmultm33_s
00838 #define GAN_MAT_LMULTL_Q                   gan_mat33f_lmultl33_q
00839 #define GAN_MAT_LMULTL_S                   gan_mat33f_lmultl33_s
00840 #define GAN_MAT_LMULTL_I                   gan_mat33f_lmultl33_i
00841 #define GAN_MAT_LMULTLI_Q                  gan_mat33f_lmultl33I_q
00842 #define GAN_MAT_LMULTLI_S                  gan_mat33f_lmultl33I_s
00843 #define GAN_MAT_LMULTLI_I                  gan_mat33f_lmultl33I_i
00844 #define GAN_MAT_LMULTLT_Q                  gan_mat33f_lmultl33T_q
00845 #define GAN_MAT_LMULTLT_S                  gan_mat33f_lmultl33T_s
00846 #define GAN_MAT_LMULTLT_I                  gan_mat33f_lmultl33T_i
00847 #define GAN_MAT_LMULTLIT_Q                 gan_mat33f_lmultl33IT_q
00848 #define GAN_MAT_LMULTLIT_S                 gan_mat33f_lmultl33IT_s
00849 #define GAN_MAT_LMULTLIT_I                 gan_mat33f_lmultl33IT_i
00850 #define GAN_MAT_RMULTL_Q                   gan_mat33f_rmultl33_q
00851 #define GAN_MAT_RMULTL_S                   gan_mat33f_rmultl33_s
00852 #define GAN_MAT_RMULTL_I                   gan_mat33f_rmultl33_i
00853 #define GAN_MAT_RMULTLI_Q                  gan_mat33f_rmultl33I_q
00854 #define GAN_MAT_RMULTLI_S                  gan_mat33f_rmultl33I_s
00855 #define GAN_MAT_RMULTLI_I                  gan_mat33f_rmultl33I_i
00856 #define GAN_MAT_RMULTLT_Q                  gan_mat33f_rmultl33T_q
00857 #define GAN_MAT_RMULTLT_S                  gan_mat33f_rmultl33T_s
00858 #define GAN_MAT_RMULTLT_I                  gan_mat33f_rmultl33T_i
00859 #define GAN_MAT_RMULTLIT_Q                 gan_mat33f_rmultl33IT_q
00860 #define GAN_MAT_RMULTLIT_S                 gan_mat33f_rmultl33IT_s
00861 #define GAN_MAT_RMULTLIT_I                 gan_mat33f_rmultl33IT_i
00862 #define GAN_MAT_SUMSQR_Q                   gan_mat33f_sumsqr_q
00863 #define GAN_MAT_SUMSQR_S                   gan_mat33f_sumsqr_s
00864 #define GAN_MAT_FNORM_Q                    gan_mat33f_Fnorm_q
00865 #define GAN_MAT_FNORM_S                    gan_mat33f_Fnorm_s
00866 #define GAN_MAT_FROM_MAT_Q                 gan_mat33f_from_matf_q
00867 #define GAN_MAT_FROM_MAT_S                 gan_mat33f_from_matf_s
00868 #define GAN_MAT_FROM_SQUMAT_Q              gan_mat33f_from_squmatf_q
00869 #define GAN_MAT_FROM_SQUMAT_S              gan_mat33f_from_squmatf_s
00870 #define GAN_SQUMAT_FROM_SQUMAT_Q           gan_squmat33f_from_squmatf_q
00871 #define GAN_SQUMAT_FROM_SQUMAT_S           gan_squmat33f_from_squmatf_s
00872 
00873 #define GAN_SQUMAT_IDENT_Q    gan_mat33f_ident_q
00874 #define GAN_SQUMAT_IDENT_S    gan_mat33f_ident_s
00875 #define GAN_SQUMAT_TPOSE_Q    gan_mat33f_tpose_q
00876 #define GAN_SQUMAT_TPOSE_S    gan_mat33f_tpose_s
00877 #define GAN_SQUMAT_TPOSE_I    gan_mat33f_tpose_i
00878 #define GAN_MAT_SADDT_Q       gan_mat33f_saddT_q
00879 #define GAN_MAT_SADDT_S       gan_mat33f_saddT_s
00880 #define GAN_SQUMAT_INVERT     gan_mat33f_invert
00881 #define GAN_SQUMAT_INVERT_Q   gan_mat33f_invert_q
00882 #define GAN_SQUMAT_INVERT_S   gan_mat33f_invert_s
00883 #define GAN_SQUMAT_INVERT_I   gan_mat33f_invert_i
00884 #define GAN_SQUMAT_ADJOINT_Q  gan_mat33f_adjoint_q
00885 #define GAN_SQUMAT_ADJOINT_S  gan_mat33f_adjoint_s
00886 #define GAN_SQUMAT_ADJOINTT_Q gan_mat33f_adjointT_q
00887 #define GAN_SQUMAT_ADJOINTT_S gan_mat33f_adjointT_s
00888 #define GAN_SQUMAT_DET_Q      gan_mat33f_det_q
00889 #define GAN_SQUMAT_DET_S      gan_mat33f_det_s
00890 #define GAN_SQUMAT_TRACE_Q    gan_mat33f_trace_q
00891 #define GAN_SQUMAT_TRACE_S    gan_mat33f_trace_s
00892 
00893 #ifndef _GAN_3X3MATF_H
00894 #define _GAN_3X3MATF_H
00895 
00896 
00897 #endif /* #ifndef _GAN_3X3MATF_H */
00898 
00911 /* This library is free software; you can redistribute it and/or
00912    modify it under the terms of the GNU Lesser General Public
00913    License as published by the Free Software Foundation; either
00914    version 2.1 of the License, or (at your option) any later version.
00915 
00916    This library is distributed in the hope that it will be useful,
00917    but WITHOUT ANY WARRANTY; without even the implied warranty of
00918    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00919    Lesser General Public License for more details.
00920 
00921    You should have received a copy of the GNU Lesser General Public
00922    License along with this library; if not, write to the Free Software
00923    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00924 */
00925 
00926 /* function declarations for functions common to all small square matrix
00927  * types */
00928 
00929 
00930 
00931 /* documentation for macros defined in individual header files */
00932 
00945 Gan_Matrix33_f *gan_mat33f_ident_q ( Gan_Matrix33_f *A );
00946 
00964 Gan_Matrix33_f *gan_mat33f_tpose_q ( Gan_Matrix33_f *A, Gan_Matrix33_f *B );
00965 
00983 Gan_SquMatrix33_f *gan_mat33f_saddT_q ( const Gan_Matrix33_f *A, Gan_SquMatrix33_f *B );
00984 
01015 Gan_Matrix33_f *gan_mat33f_invert_q ( Gan_Matrix33_f *A, Gan_Matrix33_f *B );
01016 
01025 Gan_Matrix33_f *gan_mat33f_invert_i ( Gan_Matrix33_f *A );
01026 
01041 float gan_mat33f_det_q ( const Gan_Matrix33_f *A );
01042 
01048 float gan_mat33f_trace_q ( const Gan_Matrix33_f *A );
01049 
01055 #undef GAN_SQUMAT_IDENT_Q
01056 #undef GAN_SQUMAT_IDENT_S
01057 #undef GAN_SQUMAT_TPOSE_Q
01058 #undef GAN_SQUMAT_TPOSE_S
01059 #undef GAN_SQUMAT_TPOSE_I
01060 #undef GAN_MAT_SADDT_Q
01061 #undef GAN_MAT_SADDT_S
01062 #undef GAN_SQUMATI_MULTV_Q
01063 #undef GAN_SQUMATI_MULTV_S
01064 #undef GAN_SQUMATI_MULTV_I
01065 #undef GAN_SQUMATIT_MULTV_Q
01066 #undef GAN_SQUMATIT_MULTV_S
01067 #undef GAN_SQUMATIT_MULTV_I
01068 #undef GAN_SQUMAT_INVERT
01069 #undef GAN_SQUMAT_INVERT_Q
01070 #undef GAN_SQUMAT_INVERT_S
01071 #undef GAN_SQUMAT_INVERT_I
01072 #undef GAN_SQUMAT_ADJOINT_Q
01073 #undef GAN_SQUMAT_ADJOINT_S
01074 #undef GAN_SQUMAT_ADJOINTT_Q
01075 #undef GAN_SQUMAT_ADJOINTT_S
01076 #undef GAN_SQUMAT_DET_Q
01077 #undef GAN_SQUMAT_DET_S
01078 #undef GAN_SQUMAT_TRACE_Q
01079 #undef GAN_SQUMAT_TRACE_S
01080 
01093 /* This library is free software; you can redistribute it and/or
01094    modify it under the terms of the GNU Lesser General Public
01095    License as published by the Free Software Foundation; either
01096    version 2.1 of the License, or (at your option) any later version.
01097 
01098    This library is distributed in the hope that it will be useful,
01099    but WITHOUT ANY WARRANTY; without even the implied warranty of
01100    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
01101    Lesser General Public License for more details.
01102 
01103    You should have received a copy of the GNU Lesser General Public
01104    License along with this library; if not, write to the Free Software
01105    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
01106 */
01107 
01108 /* function declarations for functions common to all small vector types */
01109 
01110 
01111 
01112 /* documentation for macros defined in individual header files */
01113 
01124 Gan_Matrix33_f *gan_mat33f_zero_q ( const Gan_Matrix33_f *A );
01125 
01142 Gan_Matrix33_f *gan_mat33f_copy_q ( Gan_Matrix33_f *A, Gan_Matrix33_f *B );
01143 
01161 Gan_Matrix33_f *gan_mat33f_scale_q ( Gan_Matrix33_f *A, float a,
01162                                Gan_Matrix33_f *B );
01163 
01171 Gan_Matrix33_f *gan_mat33f_scale_i ( Gan_Matrix33_f *A, float a );
01172 
01181 Gan_Matrix33_f *gan_mat33f_divide_q ( Gan_Matrix33_f *A, float a,
01182                                 Gan_Matrix33_f *B );
01183 
01191 Gan_Matrix33_f *gan_mat33f_divide_i ( Gan_Matrix33_f *A, float a );
01192 
01200 Gan_Matrix33_f *gan_mat33f_negate_q ( Gan_Matrix33_f *A, Gan_Matrix33_f *B );
01201 
01209 Gan_Matrix33_f *gan_mat33f_negate_i ( Gan_Matrix33_f *A );
01210 
01218 Gan_Matrix33_f *gan_mat33f_unit_i ( Gan_Matrix33_f *A );
01219 
01237 Gan_Matrix33_f *gan_mat33f_add_q ( Gan_Matrix33_f *A, Gan_Matrix33_f *B, Gan_Matrix33_f *C );
01238 
01247 Gan_Matrix33_f *gan_mat33f_add_i1 ( Gan_Matrix33_f *A, Gan_Matrix33_f *B );
01248 
01257 Gan_Matrix33_f *gan_mat33f_add_i2 ( Gan_Matrix33_f *A, Gan_Matrix33_f *B );
01258 
01267 Gan_Matrix33_f *gan_mat33f_increment ( Gan_Matrix33_f *A, Gan_Matrix33_f *B );
01268 
01286 Gan_Matrix33_f *gan_mat33f_sub_q ( Gan_Matrix33_f *A, Gan_Matrix33_f *B, Gan_Matrix33_f *C );
01287 
01296 Gan_Matrix33_f *gan_mat33f_sub_i1 ( Gan_Matrix33_f *A, Gan_Matrix33_f *B );
01297 
01306 Gan_Matrix33_f *gan_mat33f_sub_i2 ( Gan_Matrix33_f *A, Gan_Matrix33_f *B );
01307 
01316 Gan_Matrix33_f *gan_mat33f_decrement ( Gan_Matrix33_f *A, Gan_Matrix33_f *B );
01317 
01335 Gan_Matrix33_f *gan_vec33f_outer_q ( const Gan_Vector3_f *p, const Gan_Vector3_f *q,
01336                                Gan_Matrix33_f *A );
01337 
01346 Gan_Vector3_f *gan_mat33f_multv3_q ( const Gan_Matrix33_f *A, Gan_Vector3_f *p,
01347                                 Gan_Vector3_f *q );
01348 
01349 
01358 Gan_Vector3_f *gan_mat33Tf_multv3_q ( const Gan_Matrix33_f *A, Gan_Vector3_f *p,
01359                                  Gan_Vector3_f *q );
01360 
01361 
01381 Gan_Matrix33_f *gan_mat33f_lmultm33T_q ( Gan_Matrix33_f *A, const Gan_Matrix33_f *B,
01382                                  Gan_Matrix33_f *C );
01383 
01393 Gan_Matrix33_f *gan_mat33f_rmultm33_q ( Gan_Matrix33_f *A, const Gan_Matrix33_f *B,
01394                                 Gan_Matrix33_f *C );
01395 
01405 Gan_Matrix33_f *gan_mat33f_rmultm33T_q ( Gan_Matrix33_f *A, const Gan_Matrix33_f *B,
01406                                  Gan_Matrix33_f *C );
01407 
01419 Gan_SquMatrix33_f *gan_mat33f_lmultm33T_sym_q ( const Gan_Matrix33_f *A, const Gan_Matrix33_f *B,
01420                                          Gan_SquMatrix33_f *C );
01421 
01433 Gan_SquMatrix33_f *gan_mat33f_rmultm33T_sym_q ( const Gan_Matrix33_f *A, const Gan_Matrix33_f *B,
01434                                          Gan_SquMatrix33_f *C );
01435 
01444 Gan_Matrix33_f *gan_mat33f_lmults33_q ( Gan_Matrix33_f *A, const Gan_SquMatrix33_f *B,
01445                                 Gan_Matrix33_f *C );
01446 
01455 Gan_Matrix33_f *gan_mat33f_rmults33_q ( Gan_Matrix33_f *A, const Gan_SquMatrix33_f *B,
01456                                 Gan_Matrix33_f *C );
01457 
01477 Gan_SquMatrix33_f *gan_symmat33f_lrmultm33T_q ( const Gan_SquMatrix33_f *A, const Gan_Matrix33_f *B,
01478                                         const Gan_Matrix33_f *C, Gan_SquMatrix33_f *D );
01479 
01490 Gan_SquMatrix33_f *gan_symmat33f_lrmultm33_q ( const Gan_SquMatrix33_f *A, const Gan_Matrix33_f *B,
01491                                         const Gan_Matrix33_f *C, Gan_SquMatrix33_f *D );
01492 
01511 Gan_Matrix33_f *gan_mat33f_lmultl33_q ( Gan_Matrix33_f *A, const Gan_SquMatrix33_f *B,
01512                                 Gan_Matrix33_f *C );
01513 
01523 Gan_Matrix33_f *gan_mat33f_lmultl33I_q ( Gan_Matrix33_f *A, const Gan_SquMatrix33_f *B,
01524                                  Gan_Matrix33_f *C );
01525 
01535 Gan_Matrix33_f *gan_mat33f_lmultl33T_q ( Gan_Matrix33_f *A, const Gan_SquMatrix33_f *B,
01536                                  Gan_Matrix33_f *C );
01537 
01547 Gan_Matrix33_f *gan_mat33f_lmultl33IT_q ( Gan_Matrix33_f *A, const Gan_SquMatrix33_f *B,
01548                                   Gan_Matrix33_f *C );
01549 
01559 Gan_Matrix33_f *gan_mat33f_rmultl33_q ( Gan_Matrix33_f *A, const Gan_SquMatrix33_f *B,
01560                                 Gan_Matrix33_f *C );
01561 
01571 Gan_Matrix33_f *gan_mat33f_rmultl33I_q ( Gan_Matrix33_f *A, const Gan_SquMatrix33_f *B,
01572                                  Gan_Matrix33_f *C );
01573 
01583 Gan_Matrix33_f *gan_mat33f_rmultl33T_q ( Gan_Matrix33_f *A, const Gan_SquMatrix33_f *B,
01584                                  Gan_Matrix33_f *C );
01585 
01595 Gan_Matrix33_f *gan_mat33f_rmultl33IT_q ( Gan_Matrix33_f *A, const Gan_SquMatrix33_f *B,
01596                                   Gan_Matrix33_f *C );
01597 
01607 Gan_Matrix33_f *gan_mat33f_lmultl33_i ( Gan_Matrix33_f *A, const Gan_SquMatrix33_f *B );
01608 
01618 Gan_Matrix33_f *gan_mat33f_lmultl33I_i ( Gan_Matrix33_f *A, const Gan_SquMatrix33_f *B );
01619 
01629 Gan_Matrix33_f *gan_mat33f_lmultl33T_i ( Gan_Matrix33_f *A, const Gan_SquMatrix33_f *B );
01630 
01640 Gan_Matrix33_f *gan_mat33f_lmultl33IT_i ( Gan_Matrix33_f *A, const Gan_SquMatrix33_f *B );
01641 
01651 Gan_Matrix33_f *gan_mat33f_rmultl33_i ( Gan_Matrix33_f *A, const Gan_SquMatrix33_f *B );
01652 
01662 Gan_Matrix33_f *gan_mat33f_rmultl33I_i ( Gan_Matrix33_f *A, const Gan_SquMatrix33_f *B );
01663 
01673 Gan_Matrix33_f *gan_mat33f_rmultl33T_i ( Gan_Matrix33_f *A, const Gan_SquMatrix33_f *B );
01674 
01684 Gan_Matrix33_f *gan_mat33f_rmultl33IT_i ( Gan_Matrix33_f *A, const Gan_SquMatrix33_f *B );
01685 
01694 Gan_SquMatrix33_f *gan_mat33f_slmultT_q ( Gan_Matrix33_f *A, const Gan_SquMatrix33_f *B );
01695 
01696 
01705 Gan_SquMatrix33_f *gan_mat33f_srmultT_q ( const Gan_Matrix33_f *A, Gan_SquMatrix33_f *B );
01706 
01707 
01722 float gan_mat33f_sumsqr_q ( const Gan_Matrix33_f *A );
01723 
01730 float gan_mat33f_Fnorm_q ( const Gan_Matrix33_f *A );
01731 
01741 Gan_Matrix33_f *gan_mat33f_from_matf_q ( const Gan_Matrix_f *A, Gan_Matrix33_f *B );
01742 
01743 Gan_Matrix33_f *gan_mat33f_from_squmatf_q ( const Gan_SquMatrix_f *A, Gan_Matrix33_f *B );
01744 
01745 Gan_SquMatrix33_f *gan_squmat33f_from_squmatf_q ( const Gan_SquMatrix_f *A,
01746                                             Gan_SquMatrix33_f *B );
01747 
01766 /* This library is free software; you can redistribute it and/or
01767    modify it under the terms of the GNU Lesser General Public
01768    License as published by the Free Software Foundation; either
01769    version 2.1 of the License, or (at your option) any later version.
01770 
01771    This library is distributed in the hope that it will be useful,
01772    but WITHOUT ANY WARRANTY; without even the implied warranty of
01773    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
01774    Lesser General Public License for more details.
01775 
01776    You should have received a copy of the GNU Lesser General Public
01777    License along with this library; if not, write to the Free Software
01778    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
01779 */
01780 
01781 #undef GAN_MATTYPE
01782 #undef GAN_MATRIX_TYPE
01783 #undef GAN_SQUMATRIX_TYPE
01784 #undef GAN_VECTOR_TYPE
01785 #undef GAN_MAT_ELEMENT_TYPE
01786 #undef GAN_REALTYPE
01787 #undef GAN_FWRITE_LENDIAN
01788 #undef GAN_FREAD_LENDIAN
01789 #undef GAN_VECTYPE1
01790 #undef GAN_VECTYPE2
01791 #undef GAN_MATTYPEL
01792 #undef GAN_MATTYPER
01793 #undef GAN_SQUMATTYPEL
01794 #undef GAN_SQUMATTYPER
01795 #undef GAN_FIXED_MATRIX_TYPE
01796 #undef GAN_MAT_FPRINT
01797 #undef GAN_MAT_PRINT
01798 #undef GAN_MAT_FSCANF
01799 #undef GAN_MAT_FWRITE
01800 #undef GAN_MAT_FREAD
01801 #undef GAN_MAT_ZERO_Q
01802 #undef GAN_MAT_ZERO_S
01803 #undef GAN_MAT_COPY_Q
01804 #undef GAN_MAT_COPY_S
01805 #undef GAN_MAT_SCALE_Q
01806 #undef GAN_MAT_SCALE_S
01807 #undef GAN_MAT_SCALE_I
01808 #undef GAN_MAT_DIVIDE_Q
01809 #undef GAN_MAT_DIVIDE_S
01810 #undef GAN_MAT_DIVIDE_I
01811 #undef GAN_MAT_NEGATE_Q
01812 #undef GAN_MAT_NEGATE_S
01813 #undef GAN_MAT_NEGATE_I
01814 #undef GAN_MAT_UNIT_Q
01815 #undef GAN_MAT_UNIT_S
01816 #undef GAN_MAT_UNIT_I
01817 #undef GAN_MAT_ADD_Q
01818 #undef GAN_MAT_ADD_I1
01819 #undef GAN_MAT_ADD_I2
01820 #undef GAN_MAT_INCREMENT
01821 #undef GAN_MAT_ADD_S
01822 #undef GAN_MAT_SUB_Q
01823 #undef GAN_MAT_SUB_I1
01824 #undef GAN_MAT_SUB_I2
01825 #undef GAN_MAT_DECREMENT
01826 #undef GAN_MAT_SUB_S
01827 #undef GAN_VEC_OUTER_Q
01828 #undef GAN_VEC_OUTER_S
01829 #undef GAN_MAT_MULTV_Q
01830 #undef GAN_MAT_MULTV_S
01831 #undef GAN_MAT_MULTV_I
01832 #undef GAN_MATT_MULTV_Q
01833 #undef GAN_MATT_MULTV_S
01834 #undef GAN_MATT_MULTV_I
01835 #undef GAN_MAT_LMULTM_Q
01836 #undef GAN_MAT_LMULTM_S
01837 #undef GAN_MAT_LMULTMT_Q
01838 #undef GAN_MAT_LMULTMT_S
01839 #undef GAN_MAT_RMULTM_Q
01840 #undef GAN_MAT_RMULTM_S
01841 #undef GAN_MAT_RMULTMT_Q
01842 #undef GAN_MAT_RMULTMT_S
01843 #undef GAN_MAT_LMULTMT_SYM_Q
01844 #undef GAN_MAT_LMULTMT_SYM_S
01845 #undef GAN_MAT_RMULTMT_SYM_Q
01846 #undef GAN_MAT_RMULTMT_SYM_S
01847 #undef GAN_MAT_LMULTS_Q
01848 #undef GAN_MAT_LMULTS_S
01849 #undef GAN_MAT_RMULTS_Q
01850 #undef GAN_MAT_RMULTS_S
01851 #undef GAN_SYMMATL_LRMULT_Q
01852 #undef GAN_SYMMATL_LRMULT_S
01853 #undef GAN_SYMMATR_LRMULT_Q
01854 #undef GAN_SYMMATR_LRMULT_S
01855 #undef GAN_MAT_LMULTL_Q
01856 #undef GAN_MAT_LMULTL_S
01857 #undef GAN_MAT_LMULTL_I
01858 #undef GAN_MAT_LMULTLI_Q
01859 #undef GAN_MAT_LMULTLI_S
01860 #undef GAN_MAT_LMULTLI_I
01861 #undef GAN_MAT_LMULTLT_Q
01862 #undef GAN_MAT_LMULTLT_S
01863 #undef GAN_MAT_LMULTLT_I
01864 #undef GAN_MAT_LMULTLIT_Q
01865 #undef GAN_MAT_LMULTLIT_S
01866 #undef GAN_MAT_LMULTLIT_I
01867 #undef GAN_MAT_RMULTL_Q
01868 #undef GAN_MAT_RMULTL_S
01869 #undef GAN_MAT_RMULTL_I
01870 #undef GAN_MAT_RMULTLI_Q
01871 #undef GAN_MAT_RMULTLI_S
01872 #undef GAN_MAT_RMULTLI_I
01873 #undef GAN_MAT_RMULTLT_Q
01874 #undef GAN_MAT_RMULTLT_S
01875 #undef GAN_MAT_RMULTLT_I
01876 #undef GAN_MAT_RMULTLIT_Q
01877 #undef GAN_MAT_RMULTLIT_S
01878 #undef GAN_MAT_RMULTLIT_I
01879 #undef GAN_MAT_SRMULTT_Q
01880 #undef GAN_MAT_SRMULTT_S
01881 #undef GAN_MAT_SRMULTT_I
01882 #undef GAN_MAT_SLMULTT_Q
01883 #undef GAN_MAT_SLMULTT_S
01884 #undef GAN_MAT_SLMULTT_I
01885 #undef GAN_MAT_RMULTLIT_S
01886 #undef GAN_MAT_SUMSQR_Q
01887 #undef GAN_MAT_SUMSQR_S
01888 #undef GAN_MAT_FNORM_Q
01889 #undef GAN_MAT_FNORM_S
01890 #undef GAN_MAT_FROM_MAT_Q
01891 #undef GAN_MAT_FROM_MAT_S
01892 #undef GAN_MAT_FROM_SQUMAT_Q
01893 #undef GAN_MAT_FROM_SQUMAT_S
01894 #undef GAN_SQUMAT_FROM_SQUMAT_Q
01895 #undef GAN_SQUMAT_FROM_SQUMAT_S
01896 
01897 /* declare functions specific to symmetric 3x3 matrices */
01911 /* This library is free software; you can redistribute it and/or
01912    modify it under the terms of the GNU Lesser General Public
01913    License as published by the Free Software Foundation; either
01914    version 2.1 of the License, or (at your option) any later version.
01915 
01916    This library is distributed in the hope that it will be useful,
01917    but WITHOUT ANY WARRANTY; without even the implied warranty of
01918    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
01919    Lesser General Public License for more details.
01920 
01921    You should have received a copy of the GNU Lesser General Public
01922    License along with this library; if not, write to the Free Software
01923    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
01924 */
01925 
01926 #ifndef _GAN_3X3SYMMATF_H
01927 
01941 Gan_SquMatrix33_f *gan_symmat33f_fill_q ( Gan_SquMatrix33_f *A,
01942                                           float XX,
01943                                           float YX, float YY,
01944                                           float ZX, float ZY, float ZZ );
01945 
01967 void gan_symmat33f_get_parts_q ( const Gan_SquMatrix33_f *A,
01968                                  Gan_SquMatrix22_f *B, Gan_Vector2_f *p,
01969                                  float *s );
01970 
01993 Gan_SquMatrix33_f *gan_symmat33f_set_parts_q ( Gan_SquMatrix33_f *A,
01994                                                const Gan_SquMatrix22_f *B,
01995                                                const Gan_Vector2_f *p, float s );
01996 
02002 #endif /* #ifndef _GAN_3X3SYMMATF_H */
02003 
02004 #define GAN_MATTYPE Gan_SquMatrix33_f
02005 #define GAN_MATRIX_TYPE Gan_SquMatrix_f
02006 #define GAN_SQUMATRIX_TYPE Gan_SquMatrix_f
02007 #define GAN_VECTOR_TYPE Gan_Vector_f
02008 #define GAN_MAT_ELEMENT_TYPE GAN_FLOAT
02009 #define GAN_REALTYPE float
02010 #define GAN_FWRITE_LENDIAN gan_fwrite_lendian_f32
02011 #define GAN_FREAD_LENDIAN  gan_fread_lendian_f32
02012 #define GAN_VECTYPE1 Gan_Vector3_f
02013 #define GAN_VECTYPE2 Gan_Vector3_f
02014 #define GAN_FIXED_MATRIX_TYPE GAN_SYMMETRIC_MATRIX33_F
02015 #define GAN_MAT_FPRINT      gan_symmat33f_fprint
02016 #define GAN_MAT_PRINT       gan_symmat33f_print
02017 #define GAN_MAT_FSCANF      gan_symmat33f_fscanf
02018 #define GAN_MAT_FWRITE      gan_symmat33f_fwrite
02019 #define GAN_MAT_FREAD       gan_symmat33f_fread
02020 #define GAN_MAT_ZERO_Q      gan_symmat33f_zero_q
02021 #define GAN_MAT_ZERO_S      gan_symmat33f_zero_s
02022 #define GAN_MAT_COPY_Q      gan_symmat33f_copy_q
02023 #define GAN_MAT_COPY_S      gan_symmat33f_copy_s
02024 #define GAN_MAT_SCALE_Q     gan_symmat33f_scale_q
02025 #define GAN_MAT_SCALE_S     gan_symmat33f_scale_s
02026 #define GAN_MAT_SCALE_I     gan_symmat33f_scale_i
02027 #define GAN_MAT_DIVIDE_Q    gan_symmat33f_divide_q
02028 #define GAN_MAT_DIVIDE_S    gan_symmat33f_divide_s
02029 #define GAN_MAT_DIVIDE_I    gan_symmat33f_divide_i
02030 #define GAN_MAT_NEGATE_Q    gan_symmat33f_negate_q
02031 #define GAN_MAT_NEGATE_S    gan_symmat33f_negate_s
02032 #define GAN_MAT_NEGATE_I    gan_symmat33f_negate_i
02033 #define GAN_MAT_UNIT_Q      gan_symmat33f_unit_q
02034 #define GAN_MAT_UNIT_S      gan_symmat33f_unit_s
02035 #define GAN_MAT_UNIT_I      gan_symmat33f_unit_i
02036 #define GAN_MAT_ADD_Q       gan_symmat33f_add_q
02037 #define GAN_MAT_ADD_I1      gan_symmat33f_add_i1
02038 #define GAN_MAT_ADD_I2      gan_symmat33f_add_i2
02039 #define GAN_MAT_INCREMENT   gan_symmat33f_increment
02040 #define GAN_MAT_ADD_S       gan_symmat33f_add_s
02041 #define GAN_MAT_SUB_Q       gan_symmat33f_sub_q
02042 #define GAN_MAT_SUB_I1      gan_symmat33f_sub_i1
02043 #define GAN_MAT_SUB_I2      gan_symmat33f_sub_i2
02044 #define GAN_MAT_DECREMENT   gan_symmat33f_decrement
02045 #define GAN_MAT_SUB_S       gan_symmat33f_sub_s
02046 #define GAN_MAT_MULTV_Q     gan_symmat33f_multv3_q
02047 #define GAN_MAT_MULTV_S     gan_symmat33f_multv3_s
02048 #define GAN_MAT_SUMSQR_Q    gan_symmat33f_sumsqr_q
02049 #define GAN_MAT_SUMSQR_S    gan_symmat33f_sumsqr_s
02050 #define GAN_MAT_FNORM_Q     gan_symmat33f_Fnorm_q
02051 #define GAN_MAT_FNORM_S     gan_symmat33f_Fnorm_s
02052 
02053 #define GAN_SQUMAT_IDENT_Q    gan_symmat33f_ident_q
02054 #define GAN_SQUMAT_IDENT_S    gan_symmat33f_ident_s
02055 #define GAN_SQUMAT_INVERT     gan_symmat33f_invert
02056 #define GAN_SQUMAT_INVERT_Q   gan_symmat33f_invert_q
02057 #define GAN_SQUMAT_INVERT_S   gan_symmat33f_invert_s
02058 #define GAN_SQUMAT_INVERT_I   gan_symmat33f_invert_i
02059 #define GAN_SQUMAT_DET_Q      gan_symmat33f_det_q
02060 #define GAN_SQUMAT_DET_S      gan_symmat33f_det_s
02061 #define GAN_SQUMAT_TRACE_Q    gan_symmat33f_trace_q
02062 #define GAN_SQUMAT_TRACE_S    gan_symmat33f_trace_s
02063 
02064 #define GAN_VEC_OUTER_SYM_Q gan_vec33f_outer_sym_q
02065 #define GAN_VEC_OUTER_SYM_S gan_vec33f_outer_sym_s
02066 #define GAN_SYMMAT_CHOLESKY   gan_symmat33f_cholesky
02067 #define GAN_SYMMAT_CHOLESKY_Q gan_symmat33f_cholesky_q
02068 #define GAN_SYMMAT_CHOLESKY_S gan_symmat33f_cholesky_s
02069 #define GAN_SYMMAT_CHOLESKY_I gan_symmat33f_cholesky_i
02070 
02071 #ifndef _GAN_3X3SYMMATF_H
02072 #define _GAN_3X3SYMMATF_H
02073 
02074 
02075 #endif /* #ifndef _GAN_3X3SYMMATF_H */
02076 
02089 /* This library is free software; you can redistribute it and/or
02090    modify it under the terms of the GNU Lesser General Public
02091    License as published by the Free Software Foundation; either
02092    version 2.1 of the License, or (at your option) any later version.
02093 
02094    This library is distributed in the hope that it will be useful,
02095    but WITHOUT ANY WARRANTY; without even the implied warranty of
02096    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
02097    Lesser General Public License for more details.
02098 
02099    You should have received a copy of the GNU Lesser General Public
02100    License along with this library; if not, write to the Free Software
02101    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
02102 */
02103 
02104 /* function declarations for functions common to all small symmetric matrix
02105  * types */
02106 
02107 
02108 
02109 /* documentation for macros defined in individual header files */
02110 
02121 Gan_SquMatrix33_f *gan_vec33f_outer_sym_q ( const Gan_Vector3_f *p, Gan_SquMatrix33_f *A );
02122 
02144 Gan_SquMatrix33_f *gan_symmat33f_cholesky_q ( Gan_SquMatrix33_f *A, Gan_SquMatrix33_f *B );
02145 
02154 Gan_SquMatrix33_f *gan_symmat33f_cholesky_i ( Gan_SquMatrix33_f *A );
02155 
02161 #undef GAN_VEC_OUTER_SYM_Q
02162 #undef GAN_VEC_OUTER_SYM_S
02163 #undef GAN_SYMMAT_CHOLESKY
02164 #undef GAN_SYMMAT_CHOLESKY_Q
02165 #undef GAN_SYMMAT_CHOLESKY_S
02166 #undef GAN_SYMMAT_CHOLESKY_I
02167 
02180 /* This library is free software; you can redistribute it and/or
02181    modify it under the terms of the GNU Lesser General Public
02182    License as published by the Free Software Foundation; either
02183    version 2.1 of the License, or (at your option) any later version.
02184 
02185    This library is distributed in the hope that it will be useful,
02186    but WITHOUT ANY WARRANTY; without even the implied warranty of
02187    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
02188    Lesser General Public License for more details.
02189 
02190    You should have received a copy of the GNU Lesser General Public
02191    License along with this library; if not, write to the Free Software
02192    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
02193 */
02194 
02195 /* function declarations for functions common to all small square matrix
02196  * types */
02197 
02198 
02199 
02200 /* documentation for macros defined in individual header files */
02201 
02214 Gan_SquMatrix33_f *gan_symmat33f_ident_q ( Gan_SquMatrix33_f *A );
02215 
02266 Gan_SquMatrix33_f *gan_symmat33f_invert_q ( Gan_SquMatrix33_f *A, Gan_SquMatrix33_f *B );
02267 
02276 Gan_SquMatrix33_f *gan_symmat33f_invert_i ( Gan_SquMatrix33_f *A );
02277 
02292 float gan_symmat33f_det_q ( const Gan_SquMatrix33_f *A );
02293 
02299 float gan_symmat33f_trace_q ( const Gan_SquMatrix33_f *A );
02300 
02306 #undef GAN_SQUMAT_IDENT_Q
02307 #undef GAN_SQUMAT_IDENT_S
02308 #undef GAN_SQUMAT_TPOSE_Q
02309 #undef GAN_SQUMAT_TPOSE_S
02310 #undef GAN_SQUMAT_TPOSE_I
02311 #undef GAN_MAT_SADDT_Q
02312 #undef GAN_MAT_SADDT_S
02313 #undef GAN_SQUMATI_MULTV_Q
02314 #undef GAN_SQUMATI_MULTV_S
02315 #undef GAN_SQUMATI_MULTV_I
02316 #undef GAN_SQUMATIT_MULTV_Q
02317 #undef GAN_SQUMATIT_MULTV_S
02318 #undef GAN_SQUMATIT_MULTV_I
02319 #undef GAN_SQUMAT_INVERT
02320 #undef GAN_SQUMAT_INVERT_Q
02321 #undef GAN_SQUMAT_INVERT_S
02322 #undef GAN_SQUMAT_INVERT_I
02323 #undef GAN_SQUMAT_ADJOINT_Q
02324 #undef GAN_SQUMAT_ADJOINT_S
02325 #undef GAN_SQUMAT_ADJOINTT_Q
02326 #undef GAN_SQUMAT_ADJOINTT_S
02327 #undef GAN_SQUMAT_DET_Q
02328 #undef GAN_SQUMAT_DET_S
02329 #undef GAN_SQUMAT_TRACE_Q
02330 #undef GAN_SQUMAT_TRACE_S
02331 
02344 /* This library is free software; you can redistribute it and/or
02345    modify it under the terms of the GNU Lesser General Public
02346    License as published by the Free Software Foundation; either
02347    version 2.1 of the License, or (at your option) any later version.
02348 
02349    This library is distributed in the hope that it will be useful,
02350    but WITHOUT ANY WARRANTY; without even the implied warranty of
02351    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
02352    Lesser General Public License for more details.
02353 
02354    You should have received a copy of the GNU Lesser General Public
02355    License along with this library; if not, write to the Free Software
02356    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
02357 */
02358 
02359 /* function declarations for functions common to all small vector types */
02360 
02361 
02362 
02363 /* documentation for macros defined in individual header files */
02364 
02375 Gan_SquMatrix33_f *gan_symmat33f_zero_q ( const Gan_SquMatrix33_f *A );
02376 
02393 Gan_SquMatrix33_f *gan_symmat33f_copy_q ( Gan_SquMatrix33_f *A, Gan_SquMatrix33_f *B );
02394 
02412 Gan_SquMatrix33_f *gan_symmat33f_scale_q ( Gan_SquMatrix33_f *A, float a,
02413                                Gan_SquMatrix33_f *B );
02414 
02422 Gan_SquMatrix33_f *gan_symmat33f_scale_i ( Gan_SquMatrix33_f *A, float a );
02423 
02432 Gan_SquMatrix33_f *gan_symmat33f_divide_q ( Gan_SquMatrix33_f *A, float a,
02433                                 Gan_SquMatrix33_f *B );
02434 
02442 Gan_SquMatrix33_f *gan_symmat33f_divide_i ( Gan_SquMatrix33_f *A, float a );
02443 
02451 Gan_SquMatrix33_f *gan_symmat33f_negate_q ( Gan_SquMatrix33_f *A, Gan_SquMatrix33_f *B );
02452 
02460 Gan_SquMatrix33_f *gan_symmat33f_negate_i ( Gan_SquMatrix33_f *A );
02461 
02469 Gan_SquMatrix33_f *gan_symmat33f_unit_i ( Gan_SquMatrix33_f *A );
02470 
02488 Gan_SquMatrix33_f *gan_symmat33f_add_q ( Gan_SquMatrix33_f *A, Gan_SquMatrix33_f *B, Gan_SquMatrix33_f *C );
02489 
02498 Gan_SquMatrix33_f *gan_symmat33f_add_i1 ( Gan_SquMatrix33_f *A, Gan_SquMatrix33_f *B );
02499 
02508 Gan_SquMatrix33_f *gan_symmat33f_add_i2 ( Gan_SquMatrix33_f *A, Gan_SquMatrix33_f *B );
02509 
02518 Gan_SquMatrix33_f *gan_symmat33f_increment ( Gan_SquMatrix33_f *A, Gan_SquMatrix33_f *B );
02519 
02537 Gan_SquMatrix33_f *gan_symmat33f_sub_q ( Gan_SquMatrix33_f *A, Gan_SquMatrix33_f *B, Gan_SquMatrix33_f *C );
02538 
02547 Gan_SquMatrix33_f *gan_symmat33f_sub_i1 ( Gan_SquMatrix33_f *A, Gan_SquMatrix33_f *B );
02548 
02557 Gan_SquMatrix33_f *gan_symmat33f_sub_i2 ( Gan_SquMatrix33_f *A, Gan_SquMatrix33_f *B );
02558 
02567 Gan_SquMatrix33_f *gan_symmat33f_decrement ( Gan_SquMatrix33_f *A, Gan_SquMatrix33_f *B );
02568 
02587 Gan_Vector3_f *gan_symmat33f_multv3_q ( const Gan_SquMatrix33_f *A, Gan_Vector3_f *p,
02588                                 Gan_Vector3_f *q );
02589 
02590 
02591 
02592 
02664 float gan_symmat33f_sumsqr_q ( const Gan_SquMatrix33_f *A );
02665 
02672 float gan_symmat33f_Fnorm_q ( const Gan_SquMatrix33_f *A );
02673 
02704 /* This library is free software; you can redistribute it and/or
02705    modify it under the terms of the GNU Lesser General Public
02706    License as published by the Free Software Foundation; either
02707    version 2.1 of the License, or (at your option) any later version.
02708 
02709    This library is distributed in the hope that it will be useful,
02710    but WITHOUT ANY WARRANTY; without even the implied warranty of
02711    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
02712    Lesser General Public License for more details.
02713 
02714    You should have received a copy of the GNU Lesser General Public
02715    License along with this library; if not, write to the Free Software
02716    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
02717 */
02718 
02719 #undef GAN_MATTYPE
02720 #undef GAN_MATRIX_TYPE
02721 #undef GAN_SQUMATRIX_TYPE
02722 #undef GAN_VECTOR_TYPE
02723 #undef GAN_MAT_ELEMENT_TYPE
02724 #undef GAN_REALTYPE
02725 #undef GAN_FWRITE_LENDIAN
02726 #undef GAN_FREAD_LENDIAN
02727 #undef GAN_VECTYPE1
02728 #undef GAN_VECTYPE2
02729 #undef GAN_MATTYPEL
02730 #undef GAN_MATTYPER
02731 #undef GAN_SQUMATTYPEL
02732 #undef GAN_SQUMATTYPER
02733 #undef GAN_FIXED_MATRIX_TYPE
02734 #undef GAN_MAT_FPRINT
02735 #undef GAN_MAT_PRINT
02736 #undef GAN_MAT_FSCANF
02737 #undef GAN_MAT_FWRITE
02738 #undef GAN_MAT_FREAD
02739 #undef GAN_MAT_ZERO_Q
02740 #undef GAN_MAT_ZERO_S
02741 #undef GAN_MAT_COPY_Q
02742 #undef GAN_MAT_COPY_S
02743 #undef GAN_MAT_SCALE_Q
02744 #undef GAN_MAT_SCALE_S
02745 #undef GAN_MAT_SCALE_I
02746 #undef GAN_MAT_DIVIDE_Q
02747 #undef GAN_MAT_DIVIDE_S
02748 #undef GAN_MAT_DIVIDE_I
02749 #undef GAN_MAT_NEGATE_Q
02750 #undef GAN_MAT_NEGATE_S
02751 #undef GAN_MAT_NEGATE_I
02752 #undef GAN_MAT_UNIT_Q
02753 #undef GAN_MAT_UNIT_S
02754 #undef GAN_MAT_UNIT_I
02755 #undef GAN_MAT_ADD_Q
02756 #undef GAN_MAT_ADD_I1
02757 #undef GAN_MAT_ADD_I2
02758 #undef GAN_MAT_INCREMENT
02759 #undef GAN_MAT_ADD_S
02760 #undef GAN_MAT_SUB_Q
02761 #undef GAN_MAT_SUB_I1
02762 #undef GAN_MAT_SUB_I2
02763 #undef GAN_MAT_DECREMENT
02764 #undef GAN_MAT_SUB_S
02765 #undef GAN_VEC_OUTER_Q
02766 #undef GAN_VEC_OUTER_S
02767 #undef GAN_MAT_MULTV_Q
02768 #undef GAN_MAT_MULTV_S
02769 #undef GAN_MAT_MULTV_I
02770 #undef GAN_MATT_MULTV_Q
02771 #undef GAN_MATT_MULTV_S
02772 #undef GAN_MATT_MULTV_I
02773 #undef GAN_MAT_LMULTM_Q
02774 #undef GAN_MAT_LMULTM_S
02775 #undef GAN_MAT_LMULTMT_Q
02776 #undef GAN_MAT_LMULTMT_S
02777 #undef GAN_MAT_RMULTM_Q
02778 #undef GAN_MAT_RMULTM_S
02779 #undef GAN_MAT_RMULTMT_Q
02780 #undef GAN_MAT_RMULTMT_S
02781 #undef GAN_MAT_LMULTMT_SYM_Q
02782 #undef GAN_MAT_LMULTMT_SYM_S
02783 #undef GAN_MAT_RMULTMT_SYM_Q
02784 #undef GAN_MAT_RMULTMT_SYM_S
02785 #undef GAN_MAT_LMULTS_Q
02786 #undef GAN_MAT_LMULTS_S
02787 #undef GAN_MAT_RMULTS_Q
02788 #undef GAN_MAT_RMULTS_S
02789 #undef GAN_SYMMATL_LRMULT_Q
02790 #undef GAN_SYMMATL_LRMULT_S
02791 #undef GAN_SYMMATR_LRMULT_Q
02792 #undef GAN_SYMMATR_LRMULT_S
02793 #undef GAN_MAT_LMULTL_Q
02794 #undef GAN_MAT_LMULTL_S
02795 #undef GAN_MAT_LMULTL_I
02796 #undef GAN_MAT_LMULTLI_Q
02797 #undef GAN_MAT_LMULTLI_S
02798 #undef GAN_MAT_LMULTLI_I
02799 #undef GAN_MAT_LMULTLT_Q
02800 #undef GAN_MAT_LMULTLT_S
02801 #undef GAN_MAT_LMULTLT_I
02802 #undef GAN_MAT_LMULTLIT_Q
02803 #undef GAN_MAT_LMULTLIT_S
02804 #undef GAN_MAT_LMULTLIT_I
02805 #undef GAN_MAT_RMULTL_Q
02806 #undef GAN_MAT_RMULTL_S
02807 #undef GAN_MAT_RMULTL_I
02808 #undef GAN_MAT_RMULTLI_Q
02809 #undef GAN_MAT_RMULTLI_S
02810 #undef GAN_MAT_RMULTLI_I
02811 #undef GAN_MAT_RMULTLT_Q
02812 #undef GAN_MAT_RMULTLT_S
02813 #undef GAN_MAT_RMULTLT_I
02814 #undef GAN_MAT_RMULTLIT_Q
02815 #undef GAN_MAT_RMULTLIT_S
02816 #undef GAN_MAT_RMULTLIT_I
02817 #undef GAN_MAT_SRMULTT_Q
02818 #undef GAN_MAT_SRMULTT_S
02819 #undef GAN_MAT_SRMULTT_I
02820 #undef GAN_MAT_SLMULTT_Q
02821 #undef GAN_MAT_SLMULTT_S
02822 #undef GAN_MAT_SLMULTT_I
02823 #undef GAN_MAT_RMULTLIT_S
02824 #undef GAN_MAT_SUMSQR_Q
02825 #undef GAN_MAT_SUMSQR_S
02826 #undef GAN_MAT_FNORM_Q
02827 #undef GAN_MAT_FNORM_S
02828 #undef GAN_MAT_FROM_MAT_Q
02829 #undef GAN_MAT_FROM_MAT_S
02830 #undef GAN_MAT_FROM_SQUMAT_Q
02831 #undef GAN_MAT_FROM_SQUMAT_S
02832 #undef GAN_SQUMAT_FROM_SQUMAT_Q
02833 #undef GAN_SQUMAT_FROM_SQUMAT_S
02834 
02835 /* declare functions specific to lower triangular 3x3 matrices */
02849 /* This library is free software; you can redistribute it and/or
02850    modify it under the terms of the GNU Lesser General Public
02851    License as published by the Free Software Foundation; either
02852    version 2.1 of the License, or (at your option) any later version.
02853 
02854    This library is distributed in the hope that it will be useful,
02855    but WITHOUT ANY WARRANTY; without even the implied warranty of
02856    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
02857    Lesser General Public License for more details.
02858 
02859    You should have received a copy of the GNU Lesser General Public
02860    License along with this library; if not, write to the Free Software
02861    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
02862 */
02863 
02864 #ifndef _GAN_3X3LTMATF_H
02865 
02881 Gan_SquMatrix33_f *gan_ltmat33f_fill_q ( Gan_SquMatrix33_f *A,
02882                                          float XX,
02883                                          float YX, float YY,
02884                                          float ZX, float ZY, float ZZ );
02885 
02905 void gan_ltmat33f_get_parts_q ( const Gan_SquMatrix33_f *A,
02906                                 Gan_SquMatrix22_f *B, Gan_Vector2_f *p,
02907                                 float *s );
02908 
02931 Gan_SquMatrix33_f * gan_ltmat33f_set_parts_q ( Gan_SquMatrix33_f *A,
02932                                                const Gan_SquMatrix22_f *B,
02933                                                const Gan_Vector2_f *p, float s );
02934 
02940 #endif /* #ifndef _GAN_3X3LTMATF_H */
02941 
02942 #define GAN_MATTYPE Gan_SquMatrix33_f
02943 #define GAN_MATRIX_TYPE Gan_SquMatrix_f
02944 #define GAN_SQUMATRIX_TYPE Gan_SquMatrix_f
02945 #define GAN_VECTOR_TYPE Gan_Vector_f
02946 #define GAN_MAT_ELEMENT_TYPE GAN_FLOAT
02947 #define GAN_REALTYPE float
02948 #define GAN_FWRITE_LENDIAN gan_fwrite_lendian_f32
02949 #define GAN_FREAD_LENDIAN  gan_fread_lendian_f32
02950 #define GAN_VECTYPE1 Gan_Vector3_f
02951 #define GAN_VECTYPE2 Gan_Vector3_f
02952 #define GAN_SQUMATTYPEL Gan_SquMatrix33_f
02953 #define GAN_SQUMATTYPER Gan_SquMatrix33_f
02954 #define GAN_FIXED_MATRIX_TYPE GAN_LOWER_TRI_MATRIX33_F
02955 #define GAN_MAT_FPRINT     gan_ltmat33f_fprint
02956 #define GAN_MAT_PRINT      gan_ltmat33f_print
02957 #define GAN_MAT_FSCANF     gan_ltmat33f_fscanf
02958 #define GAN_MAT_FWRITE     gan_ltmat33f_fwrite
02959 #define GAN_MAT_FREAD      gan_ltmat33f_fread
02960 #define GAN_MAT_ZERO_Q     gan_ltmat33f_zero_q
02961 #define GAN_MAT_ZERO_S     gan_ltmat33f_zero_s
02962 #define GAN_MAT_COPY_Q     gan_ltmat33f_copy_q
02963 #define GAN_MAT_COPY_S     gan_ltmat33f_copy_s
02964 #define GAN_MAT_SCALE_Q    gan_ltmat33f_scale_q
02965 #define GAN_MAT_SCALE_S    gan_ltmat33f_scale_s
02966 #define GAN_MAT_SCALE_I    gan_ltmat33f_scale_i
02967 #define GAN_MAT_DIVIDE_Q   gan_ltmat33f_divide_q
02968 #define GAN_MAT_DIVIDE_S   gan_ltmat33f_divide_s
02969 #define GAN_MAT_DIVIDE_I   gan_ltmat33f_divide_i
02970 #define GAN_MAT_NEGATE_Q   gan_ltmat33f_negate_q
02971 #define GAN_MAT_NEGATE_S   gan_ltmat33f_negate_s
02972 #define GAN_MAT_NEGATE_I   gan_ltmat33f_negate_i
02973 #define GAN_MAT_UNIT_Q     gan_ltmat33f_unit_q
02974 #define GAN_MAT_UNIT_S     gan_ltmat33f_unit_s
02975 #define GAN_MAT_UNIT_I     gan_ltmat33f_unit_i
02976 #define GAN_MAT_ADD_Q      gan_ltmat33f_add_q
02977 #define GAN_MAT_ADD_I1     gan_ltmat33f_add_i1
02978 #define GAN_MAT_ADD_I2     gan_ltmat33f_add_i2
02979 #define GAN_MAT_INCREMENT  gan_ltmat33f_increment
02980 #define GAN_MAT_ADD_S      gan_ltmat33f_add_s
02981 #define GAN_MAT_SUB_Q      gan_ltmat33f_sub_q
02982 #define GAN_MAT_SUB_I1     gan_ltmat33f_sub_i1
02983 #define GAN_MAT_SUB_I2     gan_ltmat33f_sub_i2
02984 #define GAN_MAT_DECREMENT  gan_ltmat33f_decrement
02985 #define GAN_MAT_SUB_S      gan_ltmat33f_sub_s
02986 #define GAN_MAT_MULTV_Q    gan_ltmat33f_multv3_q
02987 #define GAN_MAT_MULTV_S    gan_ltmat33f_multv3_s
02988 #define GAN_MAT_MULTV_I    gan_ltmat33f_multv3_i
02989 #define GAN_MATT_MULTV_Q   gan_ltmat33Tf_multv3_q
02990 #define GAN_MATT_MULTV_S   gan_ltmat33Tf_multv3_s
02991 #define GAN_MATT_MULTV_I   gan_ltmat33Tf_multv3_i
02992 #define GAN_MAT_SRMULTT_Q  gan_ltmat33f_srmultT_q
02993 #define GAN_MAT_SRMULTT_S  gan_ltmat33f_srmultT_s
02994 #define GAN_MAT_SRMULTT_I  gan_ltmat33f_srmultT_i
02995 #define GAN_MAT_SLMULTT_Q  gan_ltmat33f_slmultT_q
02996 #define GAN_MAT_SLMULTT_S  gan_ltmat33f_slmultT_s
02997 #define GAN_MAT_SLMULTT_I  gan_ltmat33f_slmultT_i
02998 #define GAN_MAT_SUMSQR_Q   gan_ltmat33f_sumsqr_q
02999 #define GAN_MAT_SUMSQR_S   gan_ltmat33f_sumsqr_s
03000 #define GAN_MAT_FNORM_Q    gan_ltmat33f_Fnorm_q
03001 #define GAN_MAT_FNORM_S    gan_ltmat33f_Fnorm_s
03002 
03003 #define GAN_SQUMAT_IDENT_Q    gan_ltmat33f_ident_q
03004 #define GAN_SQUMAT_IDENT_S    gan_ltmat33f_ident_s
03005 #define GAN_SQUMATI_MULTV_Q   gan_ltmat33If_multv3_q
03006 #define GAN_SQUMATI_MULTV_S   gan_ltmat33If_multv3_s
03007 #define GAN_SQUMATI_MULTV_I   gan_ltmat33If_multv3_i
03008 #define GAN_SQUMATIT_MULTV_Q  gan_ltmat33ITf_multv3_q
03009 #define GAN_SQUMATIT_MULTV_S  gan_ltmat33ITf_multv3_s
03010 #define GAN_SQUMATIT_MULTV_I  gan_ltmat33ITf_multv3_i
03011 #define GAN_SQUMAT_INVERT     gan_ltmat33f_invert
03012 #define GAN_SQUMAT_INVERT_Q   gan_ltmat33f_invert_q
03013 #define GAN_SQUMAT_INVERT_S   gan_ltmat33f_invert_s
03014 #define GAN_SQUMAT_INVERT_I   gan_ltmat33f_invert_i
03015 #define GAN_SQUMAT_DET_Q      gan_ltmat33f_det_q
03016 #define GAN_SQUMAT_DET_S      gan_ltmat33f_det_s
03017 #define GAN_SQUMAT_TRACE_Q    gan_ltmat33f_trace_q
03018 #define GAN_SQUMAT_TRACE_S    gan_ltmat33f_trace_s
03019 
03020 #ifndef _GAN_3X3LTMATF_H
03021 #define _GAN_3X3LTMATF_H
03022 
03023 
03024 #endif /* #ifndef _GAN_3X3LTMATF_H */
03025 
03038 /* This library is free software; you can redistribute it and/or
03039    modify it under the terms of the GNU Lesser General Public
03040    License as published by the Free Software Foundation; either
03041    version 2.1 of the License, or (at your option) any later version.
03042 
03043    This library is distributed in the hope that it will be useful,
03044    but WITHOUT ANY WARRANTY; without even the implied warranty of
03045    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
03046    Lesser General Public License for more details.
03047 
03048    You should have received a copy of the GNU Lesser General Public
03049    License along with this library; if not, write to the Free Software
03050    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
03051 */
03052 
03053 /* function declarations for functions common to all small square matrix
03054  * types */
03055 
03056 
03057 
03058 /* documentation for macros defined in individual header files */
03059 
03072 Gan_SquMatrix33_f *gan_ltmat33f_ident_q ( Gan_SquMatrix33_f *A );
03073 
03111 Gan_Vector3_f *gan_ltmat33If_multv3_q ( const Gan_SquMatrix33_f *A, Gan_Vector3_f *p,
03112                                     Gan_Vector3_f *q );
03113 
03122 Gan_Vector3_f *gan_ltmat33If_multv3_i ( const Gan_SquMatrix33_f *A, Gan_Vector3_f *p );
03123 
03132 Gan_Vector3_f *gan_ltmat33ITf_multv3_q ( const Gan_SquMatrix33_f *A, Gan_Vector3_f *p,
03133                                      Gan_Vector3_f *q );
03134 
03143 Gan_Vector3_f *gan_ltmat33ITf_multv3_i ( const Gan_SquMatrix33_f *A, Gan_Vector3_f *p );
03144 
03162 Gan_SquMatrix33_f *gan_ltmat33f_invert_q ( Gan_SquMatrix33_f *A, Gan_SquMatrix33_f *B );
03163 
03172 Gan_SquMatrix33_f *gan_ltmat33f_invert_i ( Gan_SquMatrix33_f *A );
03173 
03188 float gan_ltmat33f_det_q ( const Gan_SquMatrix33_f *A );
03189 
03195 float gan_ltmat33f_trace_q ( const Gan_SquMatrix33_f *A );
03196 
03202 #undef GAN_SQUMAT_IDENT_Q
03203 #undef GAN_SQUMAT_IDENT_S
03204 #undef GAN_SQUMAT_TPOSE_Q
03205 #undef GAN_SQUMAT_TPOSE_S
03206 #undef GAN_SQUMAT_TPOSE_I
03207 #undef GAN_MAT_SADDT_Q
03208 #undef GAN_MAT_SADDT_S
03209 #undef GAN_SQUMATI_MULTV_Q
03210 #undef GAN_SQUMATI_MULTV_S
03211 #undef GAN_SQUMATI_MULTV_I
03212 #undef GAN_SQUMATIT_MULTV_Q
03213 #undef GAN_SQUMATIT_MULTV_S
03214 #undef GAN_SQUMATIT_MULTV_I
03215 #undef GAN_SQUMAT_INVERT
03216 #undef GAN_SQUMAT_INVERT_Q
03217 #undef GAN_SQUMAT_INVERT_S
03218 #undef GAN_SQUMAT_INVERT_I
03219 #undef GAN_SQUMAT_ADJOINT_Q
03220 #undef GAN_SQUMAT_ADJOINT_S
03221 #undef GAN_SQUMAT_ADJOINTT_Q
03222 #undef GAN_SQUMAT_ADJOINTT_S
03223 #undef GAN_SQUMAT_DET_Q
03224 #undef GAN_SQUMAT_DET_S
03225 #undef GAN_SQUMAT_TRACE_Q
03226 #undef GAN_SQUMAT_TRACE_S
03227 
03240 /* This library is free software; you can redistribute it and/or
03241    modify it under the terms of the GNU Lesser General Public
03242    License as published by the Free Software Foundation; either
03243    version 2.1 of the License, or (at your option) any later version.
03244 
03245    This library is distributed in the hope that it will be useful,
03246    but WITHOUT ANY WARRANTY; without even the implied warranty of
03247    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
03248    Lesser General Public License for more details.
03249 
03250    You should have received a copy of the GNU Lesser General Public
03251    License along with this library; if not, write to the Free Software
03252    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
03253 */
03254 
03255 /* function declarations for functions common to all small vector types */
03256 
03257 
03258 
03259 /* documentation for macros defined in individual header files */
03260 
03271 Gan_SquMatrix33_f *gan_ltmat33f_zero_q ( const Gan_SquMatrix33_f *A );
03272 
03289 Gan_SquMatrix33_f *gan_ltmat33f_copy_q ( Gan_SquMatrix33_f *A, Gan_SquMatrix33_f *B );
03290 
03308 Gan_SquMatrix33_f *gan_ltmat33f_scale_q ( Gan_SquMatrix33_f *A, float a,
03309                                Gan_SquMatrix33_f *B );
03310 
03318 Gan_SquMatrix33_f *gan_ltmat33f_scale_i ( Gan_SquMatrix33_f *A, float a );
03319 
03328 Gan_SquMatrix33_f *gan_ltmat33f_divide_q ( Gan_SquMatrix33_f *A, float a,
03329                                 Gan_SquMatrix33_f *B );
03330 
03338 Gan_SquMatrix33_f *gan_ltmat33f_divide_i ( Gan_SquMatrix33_f *A, float a );
03339 
03347 Gan_SquMatrix33_f *gan_ltmat33f_negate_q ( Gan_SquMatrix33_f *A, Gan_SquMatrix33_f *B );
03348 
03356 Gan_SquMatrix33_f *gan_ltmat33f_negate_i ( Gan_SquMatrix33_f *A );
03357 
03365 Gan_SquMatrix33_f *gan_ltmat33f_unit_i ( Gan_SquMatrix33_f *A );
03366 
03384 Gan_SquMatrix33_f *gan_ltmat33f_add_q ( Gan_SquMatrix33_f *A, Gan_SquMatrix33_f *B, Gan_SquMatrix33_f *C );
03385 
03394 Gan_SquMatrix33_f *gan_ltmat33f_add_i1 ( Gan_SquMatrix33_f *A, Gan_SquMatrix33_f *B );
03395 
03404 Gan_SquMatrix33_f *gan_ltmat33f_add_i2 ( Gan_SquMatrix33_f *A, Gan_SquMatrix33_f *B );
03405 
03414 Gan_SquMatrix33_f *gan_ltmat33f_increment ( Gan_SquMatrix33_f *A, Gan_SquMatrix33_f *B );
03415 
03433 Gan_SquMatrix33_f *gan_ltmat33f_sub_q ( Gan_SquMatrix33_f *A, Gan_SquMatrix33_f *B, Gan_SquMatrix33_f *C );
03434 
03443 Gan_SquMatrix33_f *gan_ltmat33f_sub_i1 ( Gan_SquMatrix33_f *A, Gan_SquMatrix33_f *B );
03444 
03453 Gan_SquMatrix33_f *gan_ltmat33f_sub_i2 ( Gan_SquMatrix33_f *A, Gan_SquMatrix33_f *B );
03454 
03463 Gan_SquMatrix33_f *gan_ltmat33f_decrement ( Gan_SquMatrix33_f *A, Gan_SquMatrix33_f *B );
03464 
03483 Gan_Vector3_f *gan_ltmat33f_multv3_q ( const Gan_SquMatrix33_f *A, Gan_Vector3_f *p,
03484                                 Gan_Vector3_f *q );
03485 
03494 Gan_Vector3_f *gan_ltmat33f_multv3_i ( const Gan_SquMatrix33_f *A, Gan_Vector3_f *p );
03495 
03504 Gan_Vector3_f *gan_ltmat33Tf_multv3_q ( const Gan_SquMatrix33_f *A, Gan_Vector3_f *p,
03505                                  Gan_Vector3_f *q );
03506 
03515 Gan_Vector3_f *gan_ltmat33Tf_multv3_i ( const Gan_SquMatrix33_f *A, Gan_Vector3_f *p );
03516 
03578 Gan_SquMatrix33_f *gan_ltmat33f_slmultT_q ( Gan_SquMatrix33_f *A, const Gan_SquMatrix33_f *B );
03579 
03589 Gan_SquMatrix33_f *gan_ltmat33f_slmultT_i ( Gan_SquMatrix33_f *A );
03590 
03599 Gan_SquMatrix33_f *gan_ltmat33f_srmultT_q ( const Gan_SquMatrix33_f *A, Gan_SquMatrix33_f *B );
03600 
03610 Gan_SquMatrix33_f *gan_ltmat33f_srmultT_i ( Gan_SquMatrix33_f *A );
03611 
03626 float gan_ltmat33f_sumsqr_q ( const Gan_SquMatrix33_f *A );
03627 
03634 float gan_ltmat33f_Fnorm_q ( const Gan_SquMatrix33_f *A );
03635 
03666 /* This library is free software; you can redistribute it and/or
03667    modify it under the terms of the GNU Lesser General Public
03668    License as published by the Free Software Foundation; either
03669    version 2.1 of the License, or (at your option) any later version.
03670 
03671    This library is distributed in the hope that it will be useful,
03672    but WITHOUT ANY WARRANTY; without even the implied warranty of
03673    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
03674    Lesser General Public License for more details.
03675 
03676    You should have received a copy of the GNU Lesser General Public
03677    License along with this library; if not, write to the Free Software
03678    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
03679 */
03680 
03681 #undef GAN_MATTYPE
03682 #undef GAN_MATRIX_TYPE
03683 #undef GAN_SQUMATRIX_TYPE
03684 #undef GAN_VECTOR_TYPE
03685 #undef GAN_MAT_ELEMENT_TYPE
03686 #undef GAN_REALTYPE
03687 #undef GAN_FWRITE_LENDIAN
03688 #undef GAN_FREAD_LENDIAN
03689 #undef GAN_VECTYPE1
03690 #undef GAN_VECTYPE2
03691 #undef GAN_MATTYPEL
03692 #undef GAN_MATTYPER
03693 #undef GAN_SQUMATTYPEL
03694 #undef GAN_SQUMATTYPER
03695 #undef GAN_FIXED_MATRIX_TYPE
03696 #undef GAN_MAT_FPRINT
03697 #undef GAN_MAT_PRINT
03698 #undef GAN_MAT_FSCANF
03699 #undef GAN_MAT_FWRITE
03700 #undef GAN_MAT_FREAD
03701 #undef GAN_MAT_ZERO_Q
03702 #undef GAN_MAT_ZERO_S
03703 #undef GAN_MAT_COPY_Q
03704 #undef GAN_MAT_COPY_S
03705 #undef GAN_MAT_SCALE_Q
03706 #undef GAN_MAT_SCALE_S
03707 #undef GAN_MAT_SCALE_I
03708 #undef GAN_MAT_DIVIDE_Q
03709 #undef GAN_MAT_DIVIDE_S
03710 #undef GAN_MAT_DIVIDE_I
03711 #undef GAN_MAT_NEGATE_Q
03712 #undef GAN_MAT_NEGATE_S
03713 #undef GAN_MAT_NEGATE_I
03714 #undef GAN_MAT_UNIT_Q
03715 #undef GAN_MAT_UNIT_S
03716 #undef GAN_MAT_UNIT_I
03717 #undef GAN_MAT_ADD_Q
03718 #undef GAN_MAT_ADD_I1
03719 #undef GAN_MAT_ADD_I2
03720 #undef GAN_MAT_INCREMENT
03721 #undef GAN_MAT_ADD_S
03722 #undef GAN_MAT_SUB_Q
03723 #undef GAN_MAT_SUB_I1
03724 #undef GAN_MAT_SUB_I2
03725 #undef GAN_MAT_DECREMENT
03726 #undef GAN_MAT_SUB_S
03727 #undef GAN_VEC_OUTER_Q
03728 #undef GAN_VEC_OUTER_S
03729 #undef GAN_MAT_MULTV_Q
03730 #undef GAN_MAT_MULTV_S
03731 #undef GAN_MAT_MULTV_I
03732 #undef GAN_MATT_MULTV_Q
03733 #undef GAN_MATT_MULTV_S
03734 #undef GAN_MATT_MULTV_I
03735 #undef GAN_MAT_LMULTM_Q
03736 #undef GAN_MAT_LMULTM_S
03737 #undef GAN_MAT_LMULTMT_Q
03738 #undef GAN_MAT_LMULTMT_S
03739 #undef GAN_MAT_RMULTM_Q
03740 #undef GAN_MAT_RMULTM_S
03741 #undef GAN_MAT_RMULTMT_Q
03742 #undef GAN_MAT_RMULTMT_S
03743 #undef GAN_MAT_LMULTMT_SYM_Q
03744 #undef GAN_MAT_LMULTMT_SYM_S
03745 #undef GAN_MAT_RMULTMT_SYM_Q
03746 #undef GAN_MAT_RMULTMT_SYM_S
03747 #undef GAN_MAT_LMULTS_Q
03748 #undef GAN_MAT_LMULTS_S
03749 #undef GAN_MAT_RMULTS_Q
03750 #undef GAN_MAT_RMULTS_S
03751 #undef GAN_SYMMATL_LRMULT_Q
03752 #undef GAN_SYMMATL_LRMULT_S
03753 #undef GAN_SYMMATR_LRMULT_Q
03754 #undef GAN_SYMMATR_LRMULT_S
03755 #undef GAN_MAT_LMULTL_Q
03756 #undef GAN_MAT_LMULTL_S
03757 #undef GAN_MAT_LMULTL_I
03758 #undef GAN_MAT_LMULTLI_Q
03759 #undef GAN_MAT_LMULTLI_S
03760 #undef GAN_MAT_LMULTLI_I
03761 #undef GAN_MAT_LMULTLT_Q
03762 #undef GAN_MAT_LMULTLT_S
03763 #undef GAN_MAT_LMULTLT_I
03764 #undef GAN_MAT_LMULTLIT_Q
03765 #undef GAN_MAT_LMULTLIT_S
03766 #undef GAN_MAT_LMULTLIT_I
03767 #undef GAN_MAT_RMULTL_Q
03768 #undef GAN_MAT_RMULTL_S
03769 #undef GAN_MAT_RMULTL_I
03770 #undef GAN_MAT_RMULTLI_Q
03771 #undef GAN_MAT_RMULTLI_S
03772 #undef GAN_MAT_RMULTLI_I
03773 #undef GAN_MAT_RMULTLT_Q
03774 #undef GAN_MAT_RMULTLT_S
03775 #undef GAN_MAT_RMULTLT_I
03776 #undef GAN_MAT_RMULTLIT_Q
03777 #undef GAN_MAT_RMULTLIT_S
03778 #undef GAN_MAT_RMULTLIT_I
03779 #undef GAN_MAT_SRMULTT_Q
03780 #undef GAN_MAT_SRMULTT_S
03781 #undef GAN_MAT_SRMULTT_I
03782 #undef GAN_MAT_SLMULTT_Q
03783 #undef GAN_MAT_SLMULTT_S
03784 #undef GAN_MAT_SLMULTT_I
03785 #undef GAN_MAT_RMULTLIT_S
03786 #undef GAN_MAT_SUMSQR_Q
03787 #undef GAN_MAT_SUMSQR_S
03788 #undef GAN_MAT_FNORM_Q
03789 #undef GAN_MAT_FNORM_S
03790 #undef GAN_MAT_FROM_MAT_Q
03791 #undef GAN_MAT_FROM_MAT_S
03792 #undef GAN_MAT_FROM_SQUMAT_Q
03793 #undef GAN_MAT_FROM_SQUMAT_S
03794 #undef GAN_SQUMAT_FROM_SQUMAT_Q
03795 #undef GAN_SQUMAT_FROM_SQUMAT_S
03796 
03797 /* declare functions specific to upper triangular 3x3 matrices */
03811 #define GAN_MATTYPE Gan_SquMatrix33_f
03812 #define GAN_MATRIX_TYPE Gan_SquMatrix_f
03813 #define GAN_SQUMATRIX_TYPE Gan_SquMatrix_f
03814 #define GAN_VECTOR_TYPE Gan_Vector_f
03815 #define GAN_MAT_ELEMENT_TYPE GAN_FLOAT
03816 #define GAN_REALTYPE float
03817 #define GAN_MAT_FPRINT   gan_ltmat33Tf_fprint
03818 #define GAN_MAT_PRINT    gan_ltmat33Tf_print
03819 #define GAN_MAT_FSCANF   gan_ltmat33Tf_fscanf
03820 #define GAN_FIXED_MATRIX_TYPE GAN_LOWER_TRI_MATRIX33_F
03821 
03822 #define gan_ltmat33Tf_fwrite gan_ltmat33f_fwrite
03823 #define gan_ltmat33Tf_fread  gan_ltmat33f_fread
03824 
03837 /* This library is free software; you can redistribute it and/or
03838    modify it under the terms of the GNU Lesser General Public
03839    License as published by the Free Software Foundation; either
03840    version 2.1 of the License, or (at your option) any later version.
03841 
03842    This library is distributed in the hope that it will be useful,
03843    but WITHOUT ANY WARRANTY; without even the implied warranty of
03844    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
03845    Lesser General Public License for more details.
03846 
03847    You should have received a copy of the GNU Lesser General Public
03848    License along with this library; if not, write to the Free Software
03849    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
03850 */
03851 
03852 /* function declarations for functions common to all small square matrix
03853  * types */
03854 
03855 
03856 
03857 /* documentation for macros defined in individual header files */
03858 
03925 #undef GAN_SQUMAT_IDENT_Q
03926 #undef GAN_SQUMAT_IDENT_S
03927 #undef GAN_SQUMAT_TPOSE_Q
03928 #undef GAN_SQUMAT_TPOSE_S
03929 #undef GAN_SQUMAT_TPOSE_I
03930 #undef GAN_MAT_SADDT_Q
03931 #undef GAN_MAT_SADDT_S
03932 #undef GAN_SQUMATI_MULTV_Q
03933 #undef GAN_SQUMATI_MULTV_S
03934 #undef GAN_SQUMATI_MULTV_I
03935 #undef GAN_SQUMATIT_MULTV_Q
03936 #undef GAN_SQUMATIT_MULTV_S
03937 #undef GAN_SQUMATIT_MULTV_I
03938 #undef GAN_SQUMAT_INVERT
03939 #undef GAN_SQUMAT_INVERT_Q
03940 #undef GAN_SQUMAT_INVERT_S
03941 #undef GAN_SQUMAT_INVERT_I
03942 #undef GAN_SQUMAT_ADJOINT_Q
03943 #undef GAN_SQUMAT_ADJOINT_S
03944 #undef GAN_SQUMAT_ADJOINTT_Q
03945 #undef GAN_SQUMAT_ADJOINTT_S
03946 #undef GAN_SQUMAT_DET_Q
03947 #undef GAN_SQUMAT_DET_S
03948 #undef GAN_SQUMAT_TRACE_Q
03949 #undef GAN_SQUMAT_TRACE_S
03950 
03963 /* This library is free software; you can redistribute it and/or
03964    modify it under the terms of the GNU Lesser General Public
03965    License as published by the Free Software Foundation; either
03966    version 2.1 of the License, or (at your option) any later version.
03967 
03968    This library is distributed in the hope that it will be useful,
03969    but WITHOUT ANY WARRANTY; without even the implied warranty of
03970    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
03971    Lesser General Public License for more details.
03972 
03973    You should have received a copy of the GNU Lesser General Public
03974    License along with this library; if not, write to the Free Software
03975    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
03976 */
03977 
03978 /* function declarations for functions common to all small vector types */
03979 
03980 
03981 
03982 /* documentation for macros defined in individual header files */
03983 
04154 /* This library is free software; you can redistribute it and/or
04155    modify it under the terms of the GNU Lesser General Public
04156    License as published by the Free Software Foundation; either
04157    version 2.1 of the License, or (at your option) any later version.
04158 
04159    This library is distributed in the hope that it will be useful,
04160    but WITHOUT ANY WARRANTY; without even the implied warranty of
04161    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
04162    Lesser General Public License for more details.
04163 
04164    You should have received a copy of the GNU Lesser General Public
04165    License along with this library; if not, write to the Free Software
04166    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
04167 */
04168 
04169 #undef GAN_MATTYPE
04170 #undef GAN_MATRIX_TYPE
04171 #undef GAN_SQUMATRIX_TYPE
04172 #undef GAN_VECTOR_TYPE
04173 #undef GAN_MAT_ELEMENT_TYPE
04174 #undef GAN_REALTYPE
04175 #undef GAN_FWRITE_LENDIAN
04176 #undef GAN_FREAD_LENDIAN
04177 #undef GAN_VECTYPE1
04178 #undef GAN_VECTYPE2
04179 #undef GAN_MATTYPEL
04180 #undef GAN_MATTYPER
04181 #undef GAN_SQUMATTYPEL
04182 #undef GAN_SQUMATTYPER
04183 #undef GAN_FIXED_MATRIX_TYPE
04184 #undef GAN_MAT_FPRINT
04185 #undef GAN_MAT_PRINT
04186 #undef GAN_MAT_FSCANF
04187 #undef GAN_MAT_FWRITE
04188 #undef GAN_MAT_FREAD
04189 #undef GAN_MAT_ZERO_Q
04190 #undef GAN_MAT_ZERO_S
04191 #undef GAN_MAT_COPY_Q
04192 #undef GAN_MAT_COPY_S
04193 #undef GAN_MAT_SCALE_Q
04194 #undef GAN_MAT_SCALE_S
04195 #undef GAN_MAT_SCALE_I
04196 #undef GAN_MAT_DIVIDE_Q
04197 #undef GAN_MAT_DIVIDE_S
04198 #undef GAN_MAT_DIVIDE_I
04199 #undef GAN_MAT_NEGATE_Q
04200 #undef GAN_MAT_NEGATE_S
04201 #undef GAN_MAT_NEGATE_I
04202 #undef GAN_MAT_UNIT_Q
04203 #undef GAN_MAT_UNIT_S
04204 #undef GAN_MAT_UNIT_I
04205 #undef GAN_MAT_ADD_Q
04206 #undef GAN_MAT_ADD_I1
04207 #undef GAN_MAT_ADD_I2
04208 #undef GAN_MAT_INCREMENT
04209 #undef GAN_MAT_ADD_S
04210 #undef GAN_MAT_SUB_Q
04211 #undef GAN_MAT_SUB_I1
04212 #undef GAN_MAT_SUB_I2
04213 #undef GAN_MAT_DECREMENT
04214 #undef GAN_MAT_SUB_S
04215 #undef GAN_VEC_OUTER_Q
04216 #undef GAN_VEC_OUTER_S
04217 #undef GAN_MAT_MULTV_Q
04218 #undef GAN_MAT_MULTV_S
04219 #undef GAN_MAT_MULTV_I
04220 #undef GAN_MATT_MULTV_Q
04221 #undef GAN_MATT_MULTV_S
04222 #undef GAN_MATT_MULTV_I
04223 #undef GAN_MAT_LMULTM_Q
04224 #undef GAN_MAT_LMULTM_S
04225 #undef GAN_MAT_LMULTMT_Q
04226 #undef GAN_MAT_LMULTMT_S
04227 #undef GAN_MAT_RMULTM_Q
04228 #undef GAN_MAT_RMULTM_S
04229 #undef GAN_MAT_RMULTMT_Q
04230 #undef GAN_MAT_RMULTMT_S
04231 #undef GAN_MAT_LMULTMT_SYM_Q
04232 #undef GAN_MAT_LMULTMT_SYM_S
04233 #undef GAN_MAT_RMULTMT_SYM_Q
04234 #undef GAN_MAT_RMULTMT_SYM_S
04235 #undef GAN_MAT_LMULTS_Q
04236 #undef GAN_MAT_LMULTS_S
04237 #undef GAN_MAT_RMULTS_Q
04238 #undef GAN_MAT_RMULTS_S
04239 #undef GAN_SYMMATL_LRMULT_Q
04240 #undef GAN_SYMMATL_LRMULT_S
04241 #undef GAN_SYMMATR_LRMULT_Q
04242 #undef GAN_SYMMATR_LRMULT_S
04243 #undef GAN_MAT_LMULTL_Q
04244 #undef GAN_MAT_LMULTL_S
04245 #undef GAN_MAT_LMULTL_I
04246 #undef GAN_MAT_LMULTLI_Q
04247 #undef GAN_MAT_LMULTLI_S
04248 #undef GAN_MAT_LMULTLI_I
04249 #undef GAN_MAT_LMULTLT_Q
04250 #undef GAN_MAT_LMULTLT_S
04251 #undef GAN_MAT_LMULTLT_I
04252 #undef GAN_MAT_LMULTLIT_Q
04253 #undef GAN_MAT_LMULTLIT_S
04254 #undef GAN_MAT_LMULTLIT_I
04255 #undef GAN_MAT_RMULTL_Q
04256 #undef GAN_MAT_RMULTL_S
04257 #undef GAN_MAT_RMULTL_I
04258 #undef GAN_MAT_RMULTLI_Q
04259 #undef GAN_MAT_RMULTLI_S
04260 #undef GAN_MAT_RMULTLI_I
04261 #undef GAN_MAT_RMULTLT_Q
04262 #undef GAN_MAT_RMULTLT_S
04263 #undef GAN_MAT_RMULTLT_I
04264 #undef GAN_MAT_RMULTLIT_Q
04265 #undef GAN_MAT_RMULTLIT_S
04266 #undef GAN_MAT_RMULTLIT_I
04267 #undef GAN_MAT_SRMULTT_Q
04268 #undef GAN_MAT_SRMULTT_S
04269 #undef GAN_MAT_SRMULTT_I
04270 #undef GAN_MAT_SLMULTT_Q
04271 #undef GAN_MAT_SLMULTT_S
04272 #undef GAN_MAT_SLMULTT_I
04273 #undef GAN_MAT_RMULTLIT_S
04274 #undef GAN_MAT_SUMSQR_Q
04275 #undef GAN_MAT_SUMSQR_S
04276 #undef GAN_MAT_FNORM_Q
04277 #undef GAN_MAT_FNORM_S
04278 #undef GAN_MAT_FROM_MAT_Q
04279 #undef GAN_MAT_FROM_MAT_S
04280 #undef GAN_MAT_FROM_SQUMAT_Q
04281 #undef GAN_MAT_FROM_SQUMAT_S
04282 #undef GAN_SQUMAT_FROM_SQUMAT_Q
04283 #undef GAN_SQUMAT_FROM_SQUMAT_S
04284 
04293 #ifdef __cplusplus
04294 }
04295 #endif
04296 
04297 #endif /* #ifndef _GAN_3X3MATRIXF_H */

Generated on Sat May 21 23:52:47 2005 by  doxygen 1.4.3