Skip to content

siddiq-rehman/FourierSeries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FourierSeries

To run on emscripten step into cpp directory then run the below command, that will generate main.js, main.wasm and main.worker.js files into root directory

em++ -I . main.cpp trapzInt.cpp -std=c++1z -s WASM=3 -s EXPORTED_FUNCTIONS="['_setFunctionData','_main','_getLength', '_getFourierCoefficientRealPart','_getFourierCoefficientImgPart', '_doThreadingForCoeff', '_doThreadingForCoeffThread']" -s EXTRA_EXPORTED_RUNTIME_METHODS="['cwrap','getValue','setValue']" -s TOTAL_MEMORY=64MB
-s SAFE_HEAP=1 -s ALLOW_MEMORY_GROWTH=1 -s USE_PTHREADS=1 -s PROXY_TO_PTHREAD -s PTHREAD_POOL_SIZE=50 -o ../main.js

--updated to

em++ -I . main.cpp trapzInt.cpp -std=c++1z -s WASM=3 -s EXPORTED_FUNCTIONS="['_setFunctionData','_main','_getLength', '_getFourierCoefficientRealPart','_getFourierCoefficientImgPart', '_doThreadingForCoeff', '_doThreadingForCoeffThread','_setDataIntegrationLength']" -s EXTRA_EXPORTED_RUNTIME_METHODS="['cwrap','getValue','setValue']" -s TOTAL_MEMORY=64MB -s SAFE_HEAP=1 -s ALLOW_MEMORY_GROWTH=1 -s USE_PTHREADS=1 -s PROXY_TO_PTHREAD -s PTHREAD_POOL_SIZE=50 -o ../main.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published