Changes in / [924a119:8fb2a94] in sasmodels
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
.gitignore
re9ed2de r9248bf7 22 22 /example/Fit_*/ 23 23 /example/batch_fit.csv 24 # Note: changes to gauss20, gauss76 and gauss150 are still tracked since they25 # are part of the repo and required by some models.26 24 /sasmodels/models/lib/gauss*.c -
.travis.yml
r2d09df1 rce8c388 6 6 env: 7 7 - PY=2.7 8 - DEPLOY=True9 8 - os: linux 10 9 env: … … 52 51 on: 53 52 branch: master 54 condition: $DEPLOY = True55 53 notifications: 56 54 slack: -
sasmodels/kernel_iq.c
rec8d4ac r2a7e20e 174 174 static double 175 175 qac_apply( 176 QACRotation *rotation,176 QACRotation rotation, 177 177 double qx, double qy, 178 178 double *qa_out, double *qc_out) 179 179 { 180 const double dqc = rotation ->R31*qx + rotation->R32*qy;180 const double dqc = rotation.R31*qx + rotation.R32*qy; 181 181 // Indirect calculation of qab, from qab^2 = |q|^2 - qc^2 182 182 const double dqa = sqrt(-dqc*dqc + qx*qx + qy*qy); … … 247 247 static double 248 248 qabc_apply( 249 QABCRotation *rotation,249 QABCRotation rotation, 250 250 double qx, double qy, 251 251 double *qa_out, double *qb_out, double *qc_out) 252 252 { 253 *qa_out = rotation ->R11*qx + rotation->R12*qy;254 *qb_out = rotation ->R21*qx + rotation->R22*qy;255 *qc_out = rotation ->R31*qx + rotation->R32*qy;253 *qa_out = rotation.R11*qx + rotation.R12*qy; 254 *qb_out = rotation.R21*qx + rotation.R22*qy; 255 *qc_out = rotation.R31*qx + rotation.R32*qy; 256 256 } 257 257 … … 454 454 // theta, phi, dtheta, dphi are defined below in projection to avoid repeated code. 455 455 #define BUILD_ROTATION() qac_rotation(&rotation, theta, phi, dtheta, dphi); 456 #define APPLY_ROTATION() qac_apply( &rotation, qx, qy, &qa, &qc)456 #define APPLY_ROTATION() qac_apply(rotation, qx, qy, &qa, &qc) 457 457 #define CALL_KERNEL() CALL_IQ_AC(qa, qc, local_values.table) 458 458 … … 468 468 local_values.table.psi = 0.; 469 469 #define BUILD_ROTATION() qabc_rotation(&rotation, theta, phi, psi, dtheta, dphi, local_values.table.psi) 470 #define APPLY_ROTATION() qabc_apply( &rotation, qx, qy, &qa, &qb, &qc)470 #define APPLY_ROTATION() qabc_apply(rotation, qx, qy, &qa, &qb, &qc) 471 471 #define CALL_KERNEL() CALL_IQ_ABC(qa, qb, qc, local_values.table) 472 472 #elif defined(CALL_IQ_XY) -
sasmodels/models/lib/gauss150.c
r99b84ec r74768cb 1 // Created by Andrew Jackson on 4/23/07 2 1 /* 2 * GaussWeights.c 3 * SANSAnalysis 4 * 5 * Created by Andrew Jackson on 4/23/07. 6 * Copyright 2007 __MyCompanyName__. All rights reserved. 7 * 8 */ 3 9 #ifdef GAUSS_N 4 10 # undef GAUSS_N … … 10 16 #define GAUSS_W Gauss150Wt 11 17 18 // Note: using array size 152 so that it is a multiple of 4 12 19 13 // Note: using array size 152 rather than 150 so that it is a multiple of 4. 14 // Some OpenCL devices prefer that vectors start and end on nice boundaries. 20 // Gaussians 15 21 constant double Gauss150Z[152]={ 16 22 -0.9998723404457334, … … 164 170 0.9993274305065947, 165 171 0.9998723404457334, 166 0., // zero padding is ignored167 0. // zero padding is ignored172 0., 173 0. 168 174 }; 169 175 … … 319 325 0.0007624720924706, 320 326 0.0003276086705538, 321 0., // zero padding is ignored322 0. // zero padding is ignored327 0., 328 0. 323 329 }; -
sasmodels/models/lib/gauss20.c
r99b84ec r74768cb 1 // Created by Andrew Jackson on 4/23/07 2 1 /* 2 * GaussWeights.c 3 * SANSAnalysis 4 * 5 * Created by Andrew Jackson on 4/23/07. 6 * Copyright 2007 __MyCompanyName__. All rights reserved. 7 * 8 */ 3 9 #ifdef GAUSS_N 4 10 # undef GAUSS_N -
sasmodels/models/lib/gauss76.c
r99b84ec r74768cb 1 // Created by Andrew Jackson on 4/23/07 2 1 /* 2 * GaussWeights.c 3 * SANSAnalysis 4 * 5 * Created by Andrew Jackson on 4/23/07. 6 * Copyright 2007 __MyCompanyName__. All rights reserved. 7 * 8 */ 3 9 #ifdef GAUSS_N 4 10 # undef GAUSS_N
Note: See TracChangeset
for help on using the changeset viewer.