Changeset 26657
- Timestamp:
- 11/23/21 06:55:34 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/shared/Random/random.cpp
r26621 r26657 26 26 /*Normal distribution*/ 27 27 rnd::normal_distribution distriNormal(mean,sdev); 28 /*Assign output pointer and cleanup*/ 28 29 *prand = distriNormal.generator(randomengine); 30 randomengine.free_resources(); 29 31 } /*}}}*/ 30 32 void multivariateNormal(IssmDouble** prand, int dim, IssmDouble mean, IssmDouble* covariancematrix, int seed=-1) { /*{{{*/ … … 59 61 xDelete<IssmPDouble>(sampleStandardNormal); 60 62 xDelete<IssmDouble>(Lchol); 63 randomengine.free_resources(); 61 64 } /*}}}*/ 62 65 void multivariateNormal(IssmDouble** prand, int dim, IssmDouble* mean, IssmDouble* covariancematrix, int seed=-1) { /*{{{*/ … … 90 93 xDelete<IssmPDouble>(sampleStandardNormal); 91 94 xDelete<IssmDouble>(Lchol); 95 randomengine.free_resources(); 92 96 } /*}}}*/ 93 97
Note:
See TracChangeset
for help on using the changeset viewer.