Syntax
sw_mex(Name,Value)
Description
sw_mex(Name,Value)
compiles and tests the generated mex files. The
compiled mex files will speed up the spinw.spinwave function. The
expected speedup is larger for smaller magnetic unit cells. Once the mex
files are compiled, use the swpref.setpref('usemex',true)
command to
switch on using mex files in spinw.spinwave.
Name-Value Pair Arguments
'compile'
- If
false
, mex files will not be compiled. Default istrue
. 'test'
- If
true
, the compiled .mex files will be tested. Default isfalse
. 'swtest'
- If
true
, 3 spin wave calculation will run with and without .mex files and the results will be compared. Default isfalse
.