Changeset 677ccf1 in sasmodels


Ignore:
Timestamp:
Nov 22, 2015 8:49:24 PM (9 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
7cf2cfd
Parents:
9fd094c
Message:

tweak the gaussian formula for efficiency

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/gaussian_peak.py

    r9d76d29 r677ccf1  
    5555 
    5656Iq = """ 
    57     return exp(-0.5*pow((q - q0)/sigma,2.0)); 
     57    double scaled_dq = (q - q0)/sigma; 
     58    return exp(-0.5*scaled_dq*scaled_dq); //sqrt(2*M_PI*sigma*sigma); 
    5859    """ 
    5960 
Note: See TracChangeset for help on using the changeset viewer.