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

If false, mex files will not be compiled. Default is true.
If true, the compiled .mex files will be tested. Default is false.
If true, 3 spin wave calculation will run with and without .mex files and the results will be compared. Default is false.

See Also