New Post: Step function/interpolator
I've just adopted it to the splines in mainline, although with a small modification to limit it to an actual full segment (to extrapolate from at the borders). Thanks, Christoph
View ArticleNew Post: Function of vectors
I come from an R background and would like to translate this little R function kld = function(p,q) ifelse(p == 0 | q == 0, 0, log(p/q)*p) into F# using Math.NET vectors. I got as far as this: let f1...
View ArticleNew Post: Function of vectors
If functions are not vectorized already, a common approach is to use a map function (e.g. Vector.map from the Math.NET Numerics F# extensions). Unfortunately in your case you'd need a map2 function...
View ArticleNew Post: Function of vectors
Thank you very much for your solution and the variants! Now it looks quite concise and similar to what I'm used to. Would it also be possible as a more general approach to create a matrix from the 2...
View ArticleNew Post: Vector of integers
I can't seem to find vectors with type int (e.g. vector<int>). Was that on purpose or did I miss something? Thanks!
View ArticleNew Post: Vector of integers
Yes, this is intentional. Vector<int> would not technically be a vector in the mathematical sense of vector fields, as integers lack the multiplicative inverse. Quite a few of the linear algebra...
View ArticleNew Post: Function of vectors
Btw, there is now a proper map2 function for vectors in mainline (will be part of the v3.2 release), which is quite a bit faster than the sequence workaround.
View ArticleNew Post: Vector of integers
Oh ok. I was trying to implement the PageRank Algorithm using the Matrix/Vector classes in the Math.net Numerics library. I think I figured it out though. Thanks for answering!
View ArticleNew Post: PCL profiles are not targeting .NET 4; why?
What is the rationale for using Profile 344 for the PCL project? This profile is for .NET 4.5 and higher, thus neither of the PCL libraries (profiles 344 and 47) can be consumed by another PCL library...
View ArticleNew Post: Difficulty solving Matrix with Math.Net Numerics
A colleague posted this question on Stackoverflow: http://stackoverflow.com/questions/25120810/can-math-net-solve-any-matrix This was before I realized these forums existed. Does anyone have any...
View ArticleNew Post: PCL profiles are not targeting .NET 4; why?
Hi Anders, This is most likely an oversight or small misunderstanding. The NuGet package itself contains a full .Net 4.0 build, so the PCL builds could certainly support it as well. It seems to me we...
View ArticleNew Post: PCL profiles are not targeting .NET 4; why?
PS: we need to verify it would not cause problems in mono and the Xamarin tools.
View ArticleNew Post: PCL profiles are not targeting .NET 4; why?
Great! Many thanks for the quick and positive reply, Christoph. Best regards, Anders
View ArticleReleased: Math.NET Numerics v3.2.0 (Aug 05, 2014)
Linear Algebra: Vector.Map2 (map2 in F#), storage-optimized Linear Algebra: fix RemoveColumn/Row early index bound check (was not strict enough)Statistics: Entropy ~Jeff Mastry Interpolation: use...
View ArticleCreated Release: Math.NET Numerics v3.2.0 (Aug 05, 2014)
Linear Algebra: Vector.Map2 (map2 in F#), storage-optimizedLinear Algebra: fix RemoveColumn/Row early index bound check (was not strict enough)Statistics: Entropy ~Jeff MastryInterpolation: use...
View ArticleNew Post: PCL profiles are not targeting .NET 4; why?
Should be fixed with just released v3.2.0. Thanks, Christoph
View ArticleNew Post: Is it possible to build a Slice/SubVector with shared storage?
I have a very particular problem where I could use a shared storage but slicing vectors where Copy would be pretty wasteful. Is there any way I could create and "distribute" those slices around without...
View ArticleNew Post: Function of vectors
Just installed release 3.2.1. Thanks to the Vector.map2 I can now writelet kld a b = Vector.map2 (fun p q -> if p = 0.0 || q = 0.0 then 0.0 else log(p / q) * p) a b |> Vector.sum But then I...
View Article