Changeset 0db7dbd in sasmodels for sasmodels/models/lib
- Timestamp:
- Feb 16, 2018 5:10:04 PM (6 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 47fb816
- Parents:
- aa90015
- Location:
- sasmodels/models/lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/lib/gauss76.c
r99b84ec r0db7dbd 11 11 12 12 // Gaussians 13 constant double Gauss76Wt[76]={13 constant_var double Gauss76Wt[76] = { 14 14 .00126779163408536, //0 15 15 .00294910295364247, … … 90 90 }; 91 91 92 constant double Gauss76Z[76]={92 constant_var double Gauss76Z[76] = { 93 93 -.999505948362153, //0 94 94 -.997397786355355, -
sasmodels/models/lib/polevl.c
r447e9aa r0db7dbd 51 51 */ 52 52 53 double polevl( double x, constant double *coef, int N ); 54 double polevl( double x, constant double *coef, int N )53 __device__ static 54 double polevl( double x, constant_par double *coef, int N ) 55 55 { 56 56 … … 72 72 */ 73 73 74 double p1evl( double x, constant double *coef, int N ); 75 double p1evl( double x, constant double *coef, int N )74 __device__ static 75 double p1evl( double x, constant_par double *coef, int N ) 76 76 { 77 77 int i=0; -
sasmodels/models/lib/sas_J1.c
r5181ccc r0db7dbd 42 42 #if FLOAT_SIZE>4 43 43 //Cephes double pression function 44 double cephes_j1(double x); 45 46 constant double RPJ1[8] = { 44 45 constant_var double RPJ1[8] = { 47 46 -8.99971225705559398224E8, 48 47 4.52228297998194034323E11, … … 54 53 0.0 }; 55 54 56 constant double RQJ1[8] = {55 constant_var double RQJ1[8] = { 57 56 6.20836478118054335476E2, 58 57 2.56987256757748830383E5, … … 65 64 }; 66 65 67 constant double PPJ1[8] = {66 constant_var double PPJ1[8] = { 68 67 7.62125616208173112003E-4, 69 68 7.31397056940917570436E-2, … … 76 75 77 76 78 constant double PQJ1[8] = {77 constant_var double PQJ1[8] = { 79 78 5.71323128072548699714E-4, 80 79 6.88455908754495404082E-2, … … 86 85 0.0 }; 87 86 88 constant double QPJ1[8] = {87 constant_var double QPJ1[8] = { 89 88 5.10862594750176621635E-2, 90 89 4.98213872951233449420E0, … … 96 95 2.52070205858023719784E1 }; 97 96 98 constant double QQJ1[8] = {97 constant_var double QQJ1[8] = { 99 98 7.42373277035675149943E1, 100 99 1.05644886038262816351E3, … … 106 105 0.0 }; 107 106 107 __device__ static 108 108 double cephes_j1(double x) 109 109 { … … 155 155 #else 156 156 //Single precission version of cephes 157 float cephes_j1f(float x); 158 159 constant float JPJ1[8] = { 157 constant_var float JPJ1[8] = { 160 158 -4.878788132172128E-009, 161 159 6.009061827883699E-007, … … 168 166 }; 169 167 170 constant float MO1J1[8] = {168 constant_var float MO1J1[8] = { 171 169 6.913942741265801E-002, 172 170 -2.284801500053359E-001, … … 179 177 }; 180 178 181 constant float PH1J1[8] = {179 constant_var float PH1J1[8] = { 182 180 -4.497014141919556E+001, 183 181 5.073465654089319E+001, … … 190 188 }; 191 189 190 __device__ static 192 191 float cephes_j1f(float xx) 193 192 { … … 240 239 241 240 //Finally J1c function that equals 2*J1(x)/x 242 double sas_2J1x_x(double x); 241 __device__ static 243 242 double sas_2J1x_x(double x) 244 243 {
Note: See TracChangeset
for help on using the changeset viewer.