Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    $\begingroup$ I think this is great work and will have great benefit for people who cares a lot about performance! Many times, I find it easier to write a C++ function and get better performance than to deal with all kinds of surprises in optimizing Mathematica code. I think it will be also more attractive to people, if you could add some examples about matrices and sparse array. $\endgroup$ Commented Feb 23, 2020 at 22:20
  • 1
    $\begingroup$ @xslittlegrass Thanks! I've added two examples of manipulating arrays. $\endgroup$ Commented Feb 24, 2020 at 21:46
  • $\begingroup$ When compiling "mylib = CreateLibrary[src, "wll_sparse_identity", "IncludeDirectories" -> {"<path-to-wll_interface.h>"}, Language -> "C++", "CompileOptions" -> "-std=c++17"]", I got this error message "CreateLibrary::cmperr: Compile error: C:\Temp\wll_interface.h(2012): error C2429: language feature 'structured bindings' requires compiler flag '/std:c++17'". Can you tell me why? Thanks. $\endgroup$ Commented Mar 22, 2024 at 20:13
  • $\begingroup$ @xpaul I guess you are using MSVC to compile the code--you can try specifying "CompileOptions" -> "/std:c++17". $\endgroup$ Commented Apr 11, 2024 at 3:47
  • $\begingroup$ Yes, I am using MSVC. I will try. Thank you very much! $\endgroup$ Commented Apr 11, 2024 at 21:16