Quantcast
Channel: Math.NET Numerics
Viewing all articles
Browse latest Browse all 971

New Post: Use with Visual Studio 2008?

$
0
0
I had been using Mathnet.Numerics for a personal project, now I have need to use a library I'd made using it in Unity3D, which uses Mono 2.6 (I believe), and does not have .Net 4.0 support.

I have been able to make it work with .Net 3.5 as targeted framework.
  • Using the NOSYSNUMERICS and PORTABLE defines
  • Implementing IEnumerable.Zip, Tuple<T1, T2> and Tuple<T1, T2, T3> as well as Lazy<T> (For all of which I found implementations on StackOverflow) in the MathNet.Numerics namespace
  • Commenting out some TargetedPatchingOptOut attributes, which hopefully I can live without.
  • Using http://www.nuget.org/packages/TaskParallelLibrary to replace the Task class for the Parallel class.
  • Removing some string parsing that relied on Culture
  • And commenting out the Fit class as I wasn't using it anyway, though presumably someone who cared could make that comply also.
There might have been one or two other minor things but those were the main points. Literally just finished doing it and got it working with the library a few minutes ago. I don't know if it'll be perfect, there might be issues with that old threading library, and some of the things implemented might not be as robust or optimised as the system alternatives, but it compiles, runs, and for my use it seems to find Eigenvalues more reliably than other natively .net 3.5 compliant matrix libraries I've tried.

Viewing all articles
Browse latest Browse all 971

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>