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.
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.