Main Page   Modules   Compound List   File List   Compound Members   File Members  

2x4matrix.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_2X4MATRIX_H
00030 #define _GAN_2X4MATRIX_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_REPEAT24_H
00065 #define _GAN_REPEAT24_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_REPEAT4_H
00096 #define _GAN_REPEAT4_H
00097 
00098 #ifdef __cplusplus
00099 extern "C" {
00100 #endif
00101 
00102 /* macros for constructing four-fold repetitions */
00103 #define GAN_REP4_AS(a,b,p1,p2,p3,p4) (a p1 b, a p2 b, a p3 b, a p4 b)
00104 #define GAN_REP4_AS_C(a,b) GAN_REP4_AS(a,b,x,y,z,w)
00105 #define GAN_REP4_A(a,p1,p2,p3,p4) (a p1, a p2, a p3, a p4)
00106 #define GAN_REP4_A_C(a) GAN_REP4_A(a,x,y,z,w)
00107 
00108 #define GAN_FREP4_A(a,b,p1,p2,p3,p4,q1,q2,q3,q4)\
00109     (a p1 b q1, a p2 b q2,\
00110      a p3 b q3, a p4 b q4)
00111 #define GAN_FREP4_A_C(a,b,p1,p2,p3,p4) GAN_FREP4_A(a,b,x,y,z,w,p1,p2,p3,p4)
00112 
00113 #define GAN_REP4_ABS(a,b,c,p1,p2,p3,p4,q1,q2,q3,q4)\
00114            (a p1 b q1 c, a p2 b q2 c, a p3 b q3 c, a p4 b q4 c)
00115 #define GAN_REP4_AAS(a,b,c,p1,p2,p3,p4)\
00116            GAN_REP4_ABS(a,b,c,p1,p2,p3,p4,p1,p2,p3,p4)
00117 #define GAN_REP4_AAS_C(a,b,c) GAN_REP4_AAS(a,b,c,x,y,z,w)
00118 
00119 #define GAN_REP4_AB(a,b,p1,p2,p3,p4,q1,q2,q3,q4)\
00120            (a p1 b q1, a p2 b q2, a p3 b q3, a p4 b q4)
00121 #define GAN_REP4_AA(a,b,p1,p2,p3,p4)\
00122            GAN_REP4_AB(a,b,p1,p2,p3,p4,p1,p2,p3,p4)
00123 #define GAN_REP4_AA_C(a,b) GAN_REP4_AA(a,b,x,y,z,w)
00124 
00125 #define GAN_REP4_ABCS(a,b,c,d,p1,p2,p3,p4,q1,q2,q3,q4,r1,r2,r3,r4)\
00126      (a p1 b q1 c r1 d, a p2 b q2 c r2 d, a p3 b q3 c r3 d, a p4 b q4 c r4 d)
00127 #define GAN_REP4_ABC(a,b,c,p1,p2,p3,p4,q1,q2,q3,q4,r1,r2,r3,r4)\
00128      (a p1 b q1 c r1, a p2 b q2 c r2, a p3 b q3 c r3, a p4 b q4 c r4)
00129 #define GAN_REP4_AAA(a,b,c,p1,p2,p3,p4)\
00130            GAN_REP4_ABC(a,b,c,p1,p2,p3,p4,p1,p2,p3,p4,p1,p2,p3,p4)
00131 #define GAN_REP4_AAA_C(a,b,c) GAN_REP4_AAA(a,b,c,x,y,z,w)
00132 
00133 #define GAN_REP4_OP_AB(a,b,p1,p2,p3,p4,q1,q2,q3,q4,op)\
00134         (a p1 b q1 op a p2 b q2 op a p3 b q3 op a p4 b q4)
00135 #define GAN_REP4_OP_AA(a,b,p1,p2,p3,p4,op)\
00136            GAN_REP4_OP_AB(a,b,p1,p2,p3,p4,p1,p2,p3,p4,op)
00137 #define GAN_REP4_OP_AA_C(a,b,op) GAN_REP4_OP_AA(a,b,x,y,z,w,op)
00138 
00139 #ifdef __cplusplus
00140 }
00141 #endif
00142 
00143 #endif /* #ifndef _GAN_REPEAT4_H */
00144 
00145 #ifdef __cplusplus
00146 extern "C" {
00147 #endif
00148 
00149 /* macros for constructing dual two-fold repetitions */
00150 
00151 #define GAN_FREP24_A(a,b,p1,p2,q1,q2,q3,q4,r11,r12,r13,r14,r21,r22,r23,r24)\
00152             (GAN_FREP4_A(a,b,p1##q1,p1##q2,p1##q3,p1##q4,r11,r12,r13,r14),\
00153              GAN_FREP4_A(a,b,p2##q1,p2##q2,p2##q3,p2##q4,r21,r22,r23,r24))
00154 #define GAN_FREP24_A_C(a,b,r11,r12,r13,r14,r21,r22,r23,r24) \
00155            GAN_FREP24_A(a,b,x,y,x,y,z,w,r11,r12,r13,r14,r21,r22,r23,r24)
00156 
00157 /* most general macros */
00158 #define GAN_REP24_ABCS(a,b,c,d,p1,p2,q1,q2,q3,q4,r1,r2,s1,s2,s3,s4,t1,t2,u1,u2,u3,u4)\
00159  (GAN_REP4_ABCS(a,b,c,d,p1##q1,p1##q2,p1##q3,p1##q4,r1##s1,r1##s2,r1##s3,r1##s4,t1##u1,t1##u2,t1##u3,t1##u4),\
00160   GAN_REP4_ABCS(a,b,c,d,p2##q1,p2##q2,p2##q3,p2##q4,r2##s1,r2##s2,r2##s3,r2##s4,t2##u1,t2##u2,t2##u3,t2##u4))
00161 #define GAN_REP24_ABC(a,b,c,p1,p2,q1,q2,q3,q4,r1,r2,s1,s2,s3,s4,t1,t2,u1,u2,u3,u4)\
00162  (GAN_REP4_ABC(a,b,c,p1##q1,p1##q2,p1##q3,p1##q4,r1##s1,r1##s2,r1##s3,r1##s4,t1##u1,t1##u2,t1##u3,t1##u4),\
00163   GAN_REP4_ABC(a,b,c,p2##q1,p2##q2,p2##q3,p2##q4,r2##s1,r2##s2,r2##s3,r2##s4,t2##u1,t2##u2,t2##u3,t2##u4))
00164 
00165 #define GAN_REP24_AAAS(a,b,c,d,p1,p2,q1,q2,q3,q4)\
00166   GAN_REP24_ABCS(a,b,c,d,p1,p2,q1,q2,q3,q4,p1,p2,q1,q2,q3,q4,p1,p2,q1,q2,q3,q4)
00167 #define GAN_REP24_AAA(a,b,c,p1,p2,q1,q2,q3,q4)\
00168    GAN_REP24_ABC(a,b,c,p1,p2,q1,q2,q3,q4,p1,p2,q1,q2,q3,q4,p1,p2,q1,q2,q3,q4)
00169 #define GAN_REP24_ABS(a,b,c,p1,p2,q1,q2,q3,q4,r1,r2,s1,s2,s3,s4)\
00170  (GAN_REP4_ABS(a,b,c,p1##q1,p1##q2,p1##q3,p1##q4,r1##s1,r1##s2,r1##s3,r1##s4),\
00171   GAN_REP4_ABS(a,b,c,p2##q1,p2##q2,p2##q3,p2##q4,r2##s1,r2##s2,r2##s3,r2##s4))
00172 #define GAN_REP24_AB(a,b,p1,p2,q1,q2,q3,q4,r1,r2,s1,s2,s3,s4)\
00173  (GAN_REP4_AB(a,b,p1##q1,p1##q2,p1##q3,p1##q4,r1##s1,r1##s2,r1##s3,r1##s4),\
00174   GAN_REP4_AB(a,b,p2##q1,p2##q2,p2##q3,p2##q4,r2##s1,r2##s2,r2##s3,r2##s4))
00175 #define GAN_REP24_AAS(a,b,c,p1,p2,q1,q2,q3,q4)\
00176             GAN_REP24_ABS(a,b,c,p1,p2,q1,q2,q3,q4,p1,p2,q1,q2,q3,q4)
00177 #define GAN_REP24_AA(a,b,p1,p2,q1,q2,q3,q4)\
00178             GAN_REP24_AB(a,b,p1,p2,q1,q2,q3,q4,p1,p2,q1,q2,q3,q4)
00179 #define GAN_REP24_AS(a,b,p1,p2,q1,q2,q3,q4)\
00180  (GAN_REP4_AS(a,b,p1##q1,p1##q2,p1##q3,p1##q4),\
00181   GAN_REP4_AS(a,b,p2##q1,p2##q2,p2##q3,p2##q4))
00182 #define GAN_REP24_A(a,p1,p2,q1,q2,q3,q4)\
00183  (GAN_REP4_A(a,p1##q1,p1##q2,p1##q3,p1##q4),\
00184   GAN_REP4_A(a,p2##q1,p2##q2,p2##q3,p2##q4))
00185 
00186 /* macros specific to xx, xy etc coordinates */
00187 #define GAN_REP24_AS_C(a,b) GAN_REP24_AS(a,b,x,y,x,y,z,w)
00188 #define GAN_REP24_AAS_C(a,b,c) GAN_REP24_AAS(a,b,c,x,y,x,y,z,w)
00189 #define GAN_REP24_AAAS_C(a,b,c,d) GAN_REP24_AAAS(a,b,c,d,x,y,x,y,z,w)
00190 #define GAN_REP24_A_C(a) GAN_REP24_A(a,x,y,x,y,z,w)
00191 #define GAN_REP24_AA_C(a,b) GAN_REP24_AA(a,b,x,y,x,y,z,w)
00192 #define GAN_REP24_AAA_C(a,b,c) GAN_REP24_AAA(a,b,c,x,y,x,y,z,w)
00193 
00194 #ifdef __cplusplus
00195 }
00196 #endif
00197 
00198 #endif /* #ifndef _GAN_REPEAT24_H */
00199 #include <gandalf/linalg/2vector.h>
00200 #include <gandalf/linalg/4vector.h>
00201 #include <gandalf/linalg/2x2matrix.h>
00202 #include <gandalf/linalg/4x4matrix.h>
00216 /* This library is free software; you can redistribute it and/or
00217    modify it under the terms of the GNU Lesser General Public
00218    License as published by the Free Software Foundation; either
00219    version 2.1 of the License, or (at your option) any later version.
00220 
00221    This library is distributed in the hope that it will be useful,
00222    but WITHOUT ANY WARRANTY; without even the implied warranty of
00223    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00224    Lesser General Public License for more details.
00225 
00226    You should have received a copy of the GNU Lesser General Public
00227    License along with this library; if not, write to the Free Software
00228    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00229 */
00230 
00231 #endif /* #ifndef _GAN_MATVECF_MACROS_H */
00232 #include <gandalf/linalg/mat_gen.h>
00233 
00234 #ifdef __cplusplus
00235 extern "C" {
00236 #endif
00237 
00253 
00254 typedef struct Gan_Matrix24
00255 {
00256    double xx, xy, xz, xw,
00257           yx, yy, yz, yw;
00258 } Gan_Matrix24;
00259 
00260 /* generic matrix multiply operations */
00261 #define GAN_MAT24_MULT1D(a,b,c,p1,p2,q1,q2,q3,q4)\
00262  (a p1 = GAN_REP4_OP_AB(b,* c,xx,xy,xz,xw,q1,q2,q3,q4,+),\
00263   a p2 = GAN_REP4_OP_AB(b,* c,yx,yy,yz,yw,q1,q2,q3,q4,+))
00264 #define GAN_MAT24T_MULT1D(a,b,c,p1,p2,p3,p4,q1,q2)\
00265  (a p1 = GAN_REP2_OP_AB(b,* c,xx,yx,q1,q2,+),\
00266   a p2 = GAN_REP2_OP_AB(b,* c,xy,yy,q1,q2,+),\
00267   a p3 = GAN_REP2_OP_AB(b,* c,xz,yz,q1,q2,+),\
00268   a p4 = GAN_REP2_OP_AB(b,* c,xw,yw,q1,q2,+))
00269 
00270 /* declare functions specific to 2x3 matrices */
00284 /* This library is free software; you can redistribute it and/or
00285    modify it under the terms of the GNU Lesser General Public
00286    License as published by the Free Software Foundation; either
00287    version 2.1 of the License, or (at your option) any later version.
00288 
00289    This library is distributed in the hope that it will be useful,
00290    but WITHOUT ANY WARRANTY; without even the implied warranty of
00291    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00292    Lesser General Public License for more details.
00293 
00294    You should have received a copy of the GNU Lesser General Public
00295    License along with this library; if not, write to the Free Software
00296    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00297 */
00298 
00299 #ifndef _GAN_2X4MAT_H
00300 
00317 Gan_Matrix24 *gan_mat24_fill_q ( Gan_Matrix24 *A,
00318                                  double XX, double XY, double XZ, double XW,
00319                                  double YX, double YY, double YZ, double YW );
00320 
00342 Gan_Vector2 *gan_mat24_multv3h_q ( Gan_Matrix24 *A, Gan_Vector3 *p, double h,
00343                                    Gan_Vector2 *q );
00344 
00365 void gan_mat24_get_rows_q ( Gan_Matrix24 *A, Gan_Vector4 *p, Gan_Vector4 *q );
00366 
00378 void gan_mat24_get_cols_q ( Gan_Matrix24 *A, Gan_Vector2 *p, Gan_Vector2 *q,
00379                                              Gan_Vector2 *r, Gan_Vector2 *s );
00380 
00386 #endif /* #ifndef _GAN_2X4MAT_H */
00387 
00388 #define GAN_MATTYPE Gan_Matrix24
00389 #define GAN_MATRIX_TYPE Gan_Matrix
00390 #define GAN_SQUMATRIX_TYPE Gan_SquMatrix
00391 #define GAN_VECTOR_TYPE Gan_Vector
00392 #define GAN_MAT_ELEMENT_TYPE GAN_DOUBLE
00393 #define GAN_REALTYPE double
00394 #define GAN_VECTYPE1 Gan_Vector2
00395 #define GAN_VECTYPE2 Gan_Vector4
00396 #define GAN_MATTYPEL Gan_Matrix22
00397 #define GAN_MATTYPER Gan_Matrix44
00398 #define GAN_SQUMATTYPEL Gan_SquMatrix22
00399 #define GAN_SQUMATTYPER Gan_SquMatrix44
00400 #define GAN_MAT_FPRINT                     gan_mat24_fprint
00401 #define GAN_MAT_PRINT                      gan_mat24_print
00402 #define GAN_MAT_FSCANF                     gan_mat24_fscanf
00403 #define GAN_MAT_FWRITE                     gan_mat24_fwrite
00404 #define GAN_MAT_FREAD                      gan_mat24_fread
00405 #define GAN_MAT_ZERO_Q                     gan_mat24_zero_q
00406 #define GAN_MAT_ZERO_S                     gan_mat24_zero_s
00407 #define GAN_MAT_COPY_Q                     gan_mat24_copy_q
00408 #define GAN_MAT_COPY_S                     gan_mat24_copy_s
00409 #define GAN_MAT_SCALE_Q                    gan_mat24_scale_q
00410 #define GAN_MAT_SCALE_I                    gan_mat24_scale_i
00411 #define GAN_MAT_SCALE_S                    gan_mat24_scale_s
00412 #define GAN_MAT_DIVIDE_Q                   gan_mat24_divide_q
00413 #define GAN_MAT_DIVIDE_I                   gan_mat24_divide_i
00414 #define GAN_MAT_DIVIDE_S                   gan_mat24_divide_s
00415 #define GAN_MAT_NEGATE_Q                   gan_mat24_negate_q
00416 #define GAN_MAT_NEGATE_I                   gan_mat24_negate_i
00417 #define GAN_MAT_NEGATE_S                   gan_mat24_negate_s
00418 #define GAN_MAT_UNIT_Q                     gan_mat24_unit_q
00419 #define GAN_MAT_UNIT_I                     gan_mat24_unit_i
00420 #define GAN_MAT_UNIT_S                     gan_mat24_unit_s
00421 #define GAN_MAT_ADD_Q                      gan_mat24_add_q
00422 #define GAN_MAT_ADD_I1                     gan_mat24_add_i1
00423 #define GAN_MAT_ADD_I2                     gan_mat24_add_i2
00424 #define GAN_MAT_INCREMENT                  gan_mat24_increment
00425 #define GAN_MAT_ADD_S                      gan_mat24_add_s
00426 #define GAN_MAT_SUB_Q                      gan_mat24_sub_q
00427 #define GAN_MAT_SUB_I1                     gan_mat24_sub_i1
00428 #define GAN_MAT_SUB_I2                     gan_mat24_sub_i2
00429 #define GAN_MAT_DECREMENT                  gan_mat24_decrement
00430 #define GAN_MAT_SUB_S                      gan_mat24_sub_s
00431 #define GAN_VEC_OUTER_Q                    gan_vec24_outer_q
00432 #define GAN_VEC_OUTER_S                    gan_vec24_outer_s
00433 #define GAN_MAT_MULTV_Q                    gan_mat24_multv4_q
00434 #define GAN_MAT_MULTV_S                    gan_mat24_multv4_s
00435 #define GAN_MATT_MULTV_Q                   gan_mat24T_multv2_q
00436 #define GAN_MATT_MULTV_S                   gan_mat24T_multv2_s
00437 #define GAN_MAT_LMULTM_Q                   gan_mat24_lmultm22_q
00438 #define GAN_MAT_LMULTM_S                   gan_mat24_lmultm22_s
00439 #define GAN_MAT_LMULTMT_Q                  gan_mat24_lmultm22T_q
00440 #define GAN_MAT_LMULTMT_S                  gan_mat24_lmultm22T_s
00441 #define GAN_MAT_RMULTM_Q                   gan_mat24_rmultm44_q
00442 #define GAN_MAT_RMULTM_S                   gan_mat24_rmultm44_s
00443 #define GAN_MAT_RMULTMT_Q                  gan_mat24_rmultm44T_q
00444 #define GAN_MAT_RMULTMT_S                  gan_mat24_rmultm44T_s
00445 #define GAN_MAT_LMULTMT_SYM_Q              gan_mat24_lmultm24T_sym_q
00446 #define GAN_MAT_LMULTMT_SYM_S              gan_mat24_lmultm24T_sym_s
00447 #define GAN_MAT_RMULTMT_SYM_Q              gan_mat24_rmultm24T_sym_q
00448 #define GAN_MAT_RMULTMT_SYM_S              gan_mat24_rmultm24T_sym_s
00449 #define GAN_MAT_SLMULTT_Q                  gan_mat24_slmultT_q
00450 #define GAN_MAT_SLMULTT_S                  gan_mat24_slmultT_s
00451 #define GAN_MAT_SRMULTT_Q                  gan_mat24_srmultT_q
00452 #define GAN_MAT_SRMULTT_S                  gan_mat24_srmultT_s
00453 #define GAN_MAT_LMULTS_Q                   gan_mat24_lmults22_q
00454 #define GAN_MAT_LMULTS_S                   gan_mat24_lmults22_s
00455 #define GAN_MAT_RMULTS_Q                   gan_mat24_rmults44_q
00456 #define GAN_MAT_RMULTS_S                   gan_mat24_rmults44_s
00457 #define GAN_SYMMATL_LRMULT_Q               gan_symmat22_lrmultm24T_q
00458 #define GAN_SYMMATL_LRMULT_S               gan_symmat22_lrmultm24T_s
00459 #define GAN_SYMMATR_LRMULT_Q               gan_symmat44_lrmultm24_q
00460 #define GAN_SYMMATR_LRMULT_S               gan_symmat44_lrmultm24_s
00461 #define GAN_MAT_LMULTL_Q                   gan_mat24_lmultl22_q
00462 #define GAN_MAT_LMULTL_S                   gan_mat24_lmultl22_s
00463 #define GAN_MAT_LMULTL_I                   gan_mat24_lmultl22_i
00464 #define GAN_MAT_LMULTLI_Q                  gan_mat24_lmultl22I_q
00465 #define GAN_MAT_LMULTLI_S                  gan_mat24_lmultl22I_s
00466 #define GAN_MAT_LMULTLI_I                  gan_mat24_lmultl22I_i
00467 #define GAN_MAT_LMULTLT_Q                  gan_mat24_lmultl22T_q
00468 #define GAN_MAT_LMULTLT_S                  gan_mat24_lmultl22T_s
00469 #define GAN_MAT_LMULTLT_I                  gan_mat24_lmultl22T_i
00470 #define GAN_MAT_LMULTLIT_Q                 gan_mat24_lmultl22IT_q
00471 #define GAN_MAT_LMULTLIT_S                 gan_mat24_lmultl22IT_s
00472 #define GAN_MAT_LMULTLIT_I                 gan_mat24_lmultl22IT_i
00473 #define GAN_MAT_RMULTL_Q                   gan_mat24_rmultl44_q
00474 #define GAN_MAT_RMULTL_S                   gan_mat24_rmultl44_s
00475 #define GAN_MAT_RMULTL_I                   gan_mat24_rmultl44_i
00476 #define GAN_MAT_RMULTLI_Q                  gan_mat24_rmultl44I_q
00477 #define GAN_MAT_RMULTLI_S                  gan_mat24_rmultl44I_s
00478 #define GAN_MAT_RMULTLI_I                  gan_mat24_rmultl44I_i
00479 #define GAN_MAT_RMULTLT_Q                  gan_mat24_rmultl44T_q
00480 #define GAN_MAT_RMULTLT_S                  gan_mat24_rmultl44T_s
00481 #define GAN_MAT_RMULTLT_I                  gan_mat24_rmultl44T_i
00482 #define GAN_MAT_RMULTLIT_Q                 gan_mat24_rmultl44IT_q
00483 #define GAN_MAT_RMULTLIT_S                 gan_mat24_rmultl44IT_s
00484 #define GAN_MAT_RMULTLIT_I                 gan_mat24_rmultl44IT_i
00485 #define GAN_MAT_SUMSQR_Q                   gan_mat24_sumsqr_q
00486 #define GAN_MAT_SUMSQR_S                   gan_mat24_sumsqr_s
00487 #define GAN_MAT_FNORM_Q                    gan_mat24_Fnorm_q
00488 #define GAN_MAT_FNORM_S                    gan_mat24_Fnorm_s
00489 #define GAN_MAT_FROM_MAT_Q                 gan_mat24_from_mat_q
00490 #define GAN_MAT_FROM_MAT_S                 gan_mat24_from_mat_s
00491 
00492 #ifndef _GAN_2X4MAT_H
00493 #define _GAN_2X4MAT_H
00494 
00495 
00496 #endif /* #ifndef _GAN_2X4MAT_H */
00497 
00510 /* This library is free software; you can redistribute it and/or
00511    modify it under the terms of the GNU Lesser General Public
00512    License as published by the Free Software Foundation; either
00513    version 2.1 of the License, or (at your option) any later version.
00514 
00515    This library is distributed in the hope that it will be useful,
00516    but WITHOUT ANY WARRANTY; without even the implied warranty of
00517    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00518    Lesser General Public License for more details.
00519 
00520    You should have received a copy of the GNU Lesser General Public
00521    License along with this library; if not, write to the Free Software
00522    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00523 */
00524 
00525 /* function declarations for functions common to all small vector types */
00526 
00527 
00528 
00529 /* documentation for macros defined in individual header files */
00530 
00541 Gan_Matrix24 *gan_mat24_zero_q ( Gan_Matrix24 *A );
00542 
00559 Gan_Matrix24 *gan_mat24_copy_q ( Gan_Matrix24 *A, Gan_Matrix24 *B );
00560 
00578 Gan_Matrix24 *gan_mat24_scale_q ( Gan_Matrix24 *A, double a,
00579                                Gan_Matrix24 *B );
00580 
00588 Gan_Matrix24 *gan_mat24_scale_i ( Gan_Matrix24 *A, double a );
00589 
00598 Gan_Matrix24 *gan_mat24_divide_q ( Gan_Matrix24 *A, double a,
00599                                 Gan_Matrix24 *B );
00600 
00608 Gan_Matrix24 *gan_mat24_divide_i ( Gan_Matrix24 *A, double a );
00609 
00617 Gan_Matrix24 *gan_mat24_negate_q ( Gan_Matrix24 *A, Gan_Matrix24 *B );
00618 
00626 Gan_Matrix24 *gan_mat24_negate_i ( Gan_Matrix24 *A );
00627 
00635 Gan_Matrix24 *gan_mat24_unit_i ( Gan_Matrix24 *A );
00636 
00654 Gan_Matrix24 *gan_mat24_add_q ( Gan_Matrix24 *A, Gan_Matrix24 *B, Gan_Matrix24 *C );
00655 
00664 Gan_Matrix24 *gan_mat24_add_i1 ( Gan_Matrix24 *A, Gan_Matrix24 *B );
00665 
00674 Gan_Matrix24 *gan_mat24_add_i2 ( Gan_Matrix24 *A, Gan_Matrix24 *B );
00675 
00684 Gan_Matrix24 *gan_mat24_increment ( Gan_Matrix24 *A, Gan_Matrix24 *B );
00685 
00703 Gan_Matrix24 *gan_mat24_sub_q ( Gan_Matrix24 *A, Gan_Matrix24 *B, Gan_Matrix24 *C );
00704 
00713 Gan_Matrix24 *gan_mat24_sub_i1 ( Gan_Matrix24 *A, Gan_Matrix24 *B );
00714 
00723 Gan_Matrix24 *gan_mat24_sub_i2 ( Gan_Matrix24 *A, Gan_Matrix24 *B );
00724 
00733 Gan_Matrix24 *gan_mat24_decrement ( Gan_Matrix24 *A, Gan_Matrix24 *B );
00734 
00752 Gan_Matrix24 *gan_vec24_outer_q ( Gan_Vector2 *p, Gan_Vector4 *q,
00753                                Gan_Matrix24 *A );
00754 
00763 Gan_Vector2 *gan_mat24_multv4_q ( Gan_Matrix24 *A, Gan_Vector4 *p,
00764                                 Gan_Vector2 *q );
00765 
00766 
00775 Gan_Vector4 *gan_mat24T_multv2_q ( Gan_Matrix24 *A, Gan_Vector2 *p,
00776                                  Gan_Vector4 *q );
00777 
00778 
00797 Gan_Matrix24 *gan_mat24_lmultm22_q ( Gan_Matrix24 *A, Gan_Matrix22 *B,
00798                                 Gan_Matrix24 *C );
00799 
00809 Gan_Matrix24 *gan_mat24_lmultm22T_q ( Gan_Matrix24 *A, Gan_Matrix22 *B,
00810                                  Gan_Matrix24 *C );
00811 
00821 Gan_Matrix24 *gan_mat24_rmultm44_q ( Gan_Matrix24 *A, Gan_Matrix44 *B,
00822                                 Gan_Matrix24 *C );
00823 
00833 Gan_Matrix24 *gan_mat24_rmultm44T_q ( Gan_Matrix24 *A, Gan_Matrix44 *B,
00834                                  Gan_Matrix24 *C );
00835 
00847 Gan_SquMatrix44 *gan_mat24_lmultm24T_sym_q ( Gan_Matrix24 *A, Gan_Matrix24 *B,
00848                                          Gan_SquMatrix44 *C );
00849 
00861 Gan_SquMatrix22 *gan_mat24_rmultm24T_sym_q ( Gan_Matrix24 *A, Gan_Matrix24 *B,
00862                                          Gan_SquMatrix22 *C );
00863 
00872 Gan_Matrix24 *gan_mat24_lmults22_q ( Gan_Matrix24 *A, Gan_SquMatrix22 *B,
00873                                 Gan_Matrix24 *C );
00874 
00883 Gan_Matrix24 *gan_mat24_rmults44_q ( Gan_Matrix24 *A, Gan_SquMatrix44 *B,
00884                                 Gan_Matrix24 *C );
00885 
00905 Gan_SquMatrix44 *gan_symmat22_lrmultm24T_q ( Gan_SquMatrix22 *A, Gan_Matrix24 *B,
00906                                         Gan_Matrix24 *C, Gan_SquMatrix44 *D );
00907 
00918 Gan_SquMatrix22 *gan_symmat44_lrmultm24_q ( Gan_SquMatrix44 *A, Gan_Matrix24 *B,
00919                                         Gan_Matrix24 *C, Gan_SquMatrix22 *D );
00920 
00939 Gan_Matrix24 *gan_mat24_lmultl22_q ( Gan_Matrix24 *A, Gan_SquMatrix22 *B,
00940                                 Gan_Matrix24 *C );
00941 
00951 Gan_Matrix24 *gan_mat24_lmultl22I_q ( Gan_Matrix24 *A, Gan_SquMatrix22 *B,
00952                                  Gan_Matrix24 *C );
00953 
00963 Gan_Matrix24 *gan_mat24_lmultl22T_q ( Gan_Matrix24 *A, Gan_SquMatrix22 *B,
00964                                  Gan_Matrix24 *C );
00965 
00975 Gan_Matrix24 *gan_mat24_lmultl22IT_q ( Gan_Matrix24 *A, Gan_SquMatrix22 *B,
00976                                   Gan_Matrix24 *C );
00977 
00987 Gan_Matrix24 *gan_mat24_rmultl44_q ( Gan_Matrix24 *A, Gan_SquMatrix44 *B,
00988                                 Gan_Matrix24 *C );
00989 
00999 Gan_Matrix24 *gan_mat24_rmultl44I_q ( Gan_Matrix24 *A, Gan_SquMatrix44 *B,
01000                                  Gan_Matrix24 *C );
01001 
01011 Gan_Matrix24 *gan_mat24_rmultl44T_q ( Gan_Matrix24 *A, Gan_SquMatrix44 *B,
01012                                  Gan_Matrix24 *C );
01013 
01023 Gan_Matrix24 *gan_mat24_rmultl44IT_q ( Gan_Matrix24 *A, Gan_SquMatrix44 *B,
01024                                   Gan_Matrix24 *C );
01025 
01035 Gan_Matrix24 *gan_mat24_lmultl22_i ( Gan_Matrix24 *A, Gan_SquMatrix22 *B );
01036 
01046 Gan_Matrix24 *gan_mat24_lmultl22I_i ( Gan_Matrix24 *A, Gan_SquMatrix22 *B );
01047 
01057 Gan_Matrix24 *gan_mat24_lmultl22T_i ( Gan_Matrix24 *A, Gan_SquMatrix22 *B );
01058 
01068 Gan_Matrix24 *gan_mat24_lmultl22IT_i ( Gan_Matrix24 *A, Gan_SquMatrix22 *B );
01069 
01079 Gan_Matrix24 *gan_mat24_rmultl44_i ( Gan_Matrix24 *A, Gan_SquMatrix44 *B );
01080 
01090 Gan_Matrix24 *gan_mat24_rmultl44I_i ( Gan_Matrix24 *A, Gan_SquMatrix44 *B );
01091 
01101 Gan_Matrix24 *gan_mat24_rmultl44T_i ( Gan_Matrix24 *A, Gan_SquMatrix44 *B );
01102 
01112 Gan_Matrix24 *gan_mat24_rmultl44IT_i ( Gan_Matrix24 *A, Gan_SquMatrix44 *B );
01113 
01122 Gan_SquMatrix44 *gan_mat24_slmultT_q ( Gan_Matrix24 *A, Gan_SquMatrix44 *B );
01123 
01124 
01133 Gan_SquMatrix22 *gan_mat24_srmultT_q ( Gan_Matrix24 *A, Gan_SquMatrix22 *B );
01134 
01135 
01150 double gan_mat24_sumsqr_q ( Gan_Matrix24 *A );
01151 
01158 double gan_mat24_Fnorm_q ( Gan_Matrix24 *A );
01159 
01177 Gan_Matrix24 *gan_mat24_from_mat_q ( Gan_Matrix *A, Gan_Matrix24 *B );
01178 
01179 
01180 
01199 /* This library is free software; you can redistribute it and/or
01200    modify it under the terms of the GNU Lesser General Public
01201    License as published by the Free Software Foundation; either
01202    version 2.1 of the License, or (at your option) any later version.
01203 
01204    This library is distributed in the hope that it will be useful,
01205    but WITHOUT ANY WARRANTY; without even the implied warranty of
01206    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
01207    Lesser General Public License for more details.
01208 
01209    You should have received a copy of the GNU Lesser General Public
01210    License along with this library; if not, write to the Free Software
01211    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
01212 */
01213 
01214 #undef GAN_MATTYPE
01215 #undef GAN_MATRIX_TYPE
01216 #undef GAN_SQUMATRIX_TYPE
01217 #undef GAN_VECTOR_TYPE
01218 #undef GAN_MAT_ELEMENT_TYPE
01219 #undef GAN_REALTYPE
01220 #undef GAN_VECTYPE1
01221 #undef GAN_VECTYPE2
01222 #undef GAN_MATTYPEL
01223 #undef GAN_MATTYPER
01224 #undef GAN_SQUMATTYPEL
01225 #undef GAN_SQUMATTYPER
01226 #undef GAN_FIXED_MATRIX_TYPE
01227 #undef GAN_MAT_FPRINT
01228 #undef GAN_MAT_PRINT
01229 #undef GAN_MAT_FSCANF
01230 #undef GAN_MAT_FWRITE
01231 #undef GAN_MAT_FREAD
01232 #undef GAN_MAT_ZERO_Q
01233 #undef GAN_MAT_ZERO_S
01234 #undef GAN_MAT_COPY_Q
01235 #undef GAN_MAT_COPY_S
01236 #undef GAN_MAT_SCALE_Q
01237 #undef GAN_MAT_SCALE_S
01238 #undef GAN_MAT_SCALE_I
01239 #undef GAN_MAT_DIVIDE_Q
01240 #undef GAN_MAT_DIVIDE_S
01241 #undef GAN_MAT_DIVIDE_I
01242 #undef GAN_MAT_NEGATE_Q
01243 #undef GAN_MAT_NEGATE_S
01244 #undef GAN_MAT_NEGATE_I
01245 #undef GAN_MAT_UNIT_Q
01246 #undef GAN_MAT_UNIT_S
01247 #undef GAN_MAT_UNIT_I
01248 #undef GAN_MAT_ADD_Q
01249 #undef GAN_MAT_ADD_I1
01250 #undef GAN_MAT_ADD_I2
01251 #undef GAN_MAT_INCREMENT
01252 #undef GAN_MAT_ADD_S
01253 #undef GAN_MAT_SUB_Q
01254 #undef GAN_MAT_SUB_I1
01255 #undef GAN_MAT_SUB_I2
01256 #undef GAN_MAT_DECREMENT
01257 #undef GAN_MAT_SUB_S
01258 #undef GAN_VEC_OUTER_Q
01259 #undef GAN_VEC_OUTER_S
01260 #undef GAN_MAT_MULTV_Q
01261 #undef GAN_MAT_MULTV_S
01262 #undef GAN_MAT_MULTV_I
01263 #undef GAN_MATT_MULTV_Q
01264 #undef GAN_MATT_MULTV_S
01265 #undef GAN_MATT_MULTV_I
01266 #undef GAN_MAT_LMULTM_Q
01267 #undef GAN_MAT_LMULTM_S
01268 #undef GAN_MAT_LMULTMT_Q
01269 #undef GAN_MAT_LMULTMT_S
01270 #undef GAN_MAT_RMULTM_Q
01271 #undef GAN_MAT_RMULTM_S
01272 #undef GAN_MAT_RMULTMT_Q
01273 #undef GAN_MAT_RMULTMT_S
01274 #undef GAN_MAT_LMULTMT_SYM_Q
01275 #undef GAN_MAT_LMULTMT_SYM_S
01276 #undef GAN_MAT_RMULTMT_SYM_Q
01277 #undef GAN_MAT_RMULTMT_SYM_S
01278 #undef GAN_MAT_LMULTS_Q
01279 #undef GAN_MAT_LMULTS_S
01280 #undef GAN_MAT_RMULTS_Q
01281 #undef GAN_MAT_RMULTS_S
01282 #undef GAN_SYMMATL_LRMULT_Q
01283 #undef GAN_SYMMATL_LRMULT_S
01284 #undef GAN_SYMMATR_LRMULT_Q
01285 #undef GAN_SYMMATR_LRMULT_S
01286 #undef GAN_MAT_LMULTL_Q
01287 #undef GAN_MAT_LMULTL_S
01288 #undef GAN_MAT_LMULTL_I
01289 #undef GAN_MAT_LMULTLI_Q
01290 #undef GAN_MAT_LMULTLI_S
01291 #undef GAN_MAT_LMULTLI_I
01292 #undef GAN_MAT_LMULTLT_Q
01293 #undef GAN_MAT_LMULTLT_S
01294 #undef GAN_MAT_LMULTLT_I
01295 #undef GAN_MAT_LMULTLIT_Q
01296 #undef GAN_MAT_LMULTLIT_S
01297 #undef GAN_MAT_LMULTLIT_I
01298 #undef GAN_MAT_RMULTL_Q
01299 #undef GAN_MAT_RMULTL_S
01300 #undef GAN_MAT_RMULTL_I
01301 #undef GAN_MAT_RMULTLI_Q
01302 #undef GAN_MAT_RMULTLI_S
01303 #undef GAN_MAT_RMULTLI_I
01304 #undef GAN_MAT_RMULTLT_Q
01305 #undef GAN_MAT_RMULTLT_S
01306 #undef GAN_MAT_RMULTLT_I
01307 #undef GAN_MAT_RMULTLIT_Q
01308 #undef GAN_MAT_RMULTLIT_S
01309 #undef GAN_MAT_RMULTLIT_I
01310 #undef GAN_MAT_SRMULTT_Q
01311 #undef GAN_MAT_SRMULTT_S
01312 #undef GAN_MAT_SRMULTT_I
01313 #undef GAN_MAT_SLMULTT_Q
01314 #undef GAN_MAT_SLMULTT_S
01315 #undef GAN_MAT_SLMULTT_I
01316 #undef GAN_MAT_RMULTLIT_S
01317 #undef GAN_MAT_SUMSQR_Q
01318 #undef GAN_MAT_SUMSQR_S
01319 #undef GAN_MAT_FNORM_Q
01320 #undef GAN_MAT_FNORM_S
01321 #undef GAN_MAT_FROM_MAT_Q
01322 #undef GAN_MAT_FROM_MAT_S
01323 #undef GAN_MAT_FROM_SQUMAT_Q
01324 #undef GAN_MAT_FROM_SQUMAT_S
01325 #undef GAN_SQUMAT_FROM_SQUMAT_Q
01326 #undef GAN_SQUMAT_FROM_SQUMAT_S
01327 
01340 #ifdef __cplusplus
01341 }
01342 #endif
01343 
01344 #endif /* #ifndef _GAN_2X4MATRIX_H */

Generated on Mon Oct 13 16:14:31 2003 by doxygen1.3-rc1