Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/lib/gauss150.c

    r994d77f r99b84ec  
    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  */ 
     1// Created by Andrew Jackson on 4/23/07 
    92 
    10 // Gaussians 
    11 constant double Gauss150Z[150]={ 
     3 #ifdef GAUSS_N 
     4 # undef GAUSS_N 
     5 # undef GAUSS_Z 
     6 # undef GAUSS_W 
     7 #endif 
     8 #define GAUSS_N 150 
     9 #define GAUSS_Z Gauss150Z 
     10 #define GAUSS_W Gauss150Wt 
     11 
     12 
     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. 
     15constant double Gauss150Z[152]={ 
    1216        -0.9998723404457334, 
    1317        -0.9993274305065947, 
     
    159163        0.9983473449340834, 
    160164        0.9993274305065947, 
    161         0.9998723404457334 
     165        0.9998723404457334, 
     166        0., // zero padding is ignored 
     167        0.  // zero padding is ignored 
    162168}; 
    163169 
    164 constant double Gauss150Wt[150]={ 
     170constant double Gauss150Wt[152]={ 
    165171        0.0003276086705538, 
    166172        0.0007624720924706, 
     
    312318        0.0011976474864367, 
    313319        0.0007624720924706, 
    314         0.0003276086705538 
     320        0.0003276086705538, 
     321        0., // zero padding is ignored 
     322        0.  // zero padding is ignored 
    315323}; 
Note: See TracChangeset for help on using the changeset viewer.