New Post: Transpose a vector
thank you for the help and the great explanation, really fast and informative. Thank you, michael
View ArticleNew Post: Step function/interpolator
I implemented a piece wise constant interpolator. would you like to have it?
View ArticleNew Post: Transpose a vector
by the way, could you please help me with a matrix access? How could i do this matlab syntax? Mnew = M (:,2) or Mnew = M(3,3:6) do have experiences here also? michael
View ArticleNew Post: Transpose a vector
You can use the SubMatrix() method to extract contiguous slices.
View ArticleNew Post: Issues with f# sample code
Hi all, I'm attempting to run this sample code copied from http://numerics.mathdotnet.com/docs/ in the VS interactive window. The code returns the following error: The type referenced through...
View ArticleNew Post: How to apply operation over vector from each row/column of a matrix?
I have been porting some code that I had with my own Matrix<T> implementation but Math.Net is far more complete. And I am wondering if there exists such a method here. My code looked like this:...
View ArticleNew Post: How to apply operation over vector from each row/column of a matrix?
Hi Federico, I don't fully understand yet what the operation should do. What does Functions.Sum(v, Axis.Rows) do and how does it relate to ones * diag(v), exactly? Maybe you're looking for...
View ArticleNew Post: Issues with f# sample code
The NuGet package contains builds for multiple platforms. Which one did you reference? Sounds a bit as if the .Net 3.5 assemblies had been referenced. Thanks, Christoph
View ArticleNew Post: Step function/interpolator
Great, thanks! I've cherry-picked the step but also the log-linear and transformed intepolators to mainline. Thanks, Christoph
View ArticleNew Post: Compiler error calling MathNet Numerics DelimitedWriter.WriteFile
See https://github.com/mathnet/mathnet-numerics/issues/230.
View ArticleCreated Release: Math.NET Numerics v3.1.0 (Jul 20, 2014)
Random: generate a sequence of integers within a range in one goDistributions: all distributions must have static routines to sample an array in one goLinear Algebra: fix...
View ArticleReleased: Math.NET Numerics v3.1.0 (Jul 20, 2014)
Random: generate a sequence of integers within a range in one go Distributions: all distributions must have static routines to sample an array in one goLinear Algebra: fix Matrix.StrictlyLowerTriangle...
View ArticleUpdated Release: Math.NET Numerics v3.1.0 (Jul 20, 2014)
Random: generate a sequence of integers within a range in one goDistributions: all distributions must have static routines to sample an array in one goLinear Algebra: fix...
View ArticleNew Post: How to apply operation over vector from each row/column of a matrix?
Probably FoldRows(f,state) is what I need to build it. Function.Sum(v, Axis.Rows) looks like this (column-major): for (int majorItem = 0; majorItem < t.Length; majorItem++) { for (int i = 0; i <...
View ArticleNew Post: How to apply operation over vector from each row/column of a matrix?
Ah, that looks more like:m.MapIndexedInplace((i,j,x) => x + v.At(i));
View ArticleNew Post: How to apply operation over vector from each row/column of a matrix?
This is the implementation. Is there any way to avoid the casting? public static Matrix<T> AddVectorOnEachColumn<T>(this Matrix<T> m1, Vector<T> v, T scale) where T : struct,...
View ArticleNew Post: How to apply operation over vector from each row/column of a matrix?
dm1.At(i, j) is already provided as value:fm1.MapIndexed((i, j, value) => value + fscale * fv.At(j)) as Matrix<T> Then you can pre-scale the vector, once, which is supported generically;...
View ArticleNew Post: Step function/interpolator
Christoph, I am not sure if you saw my alternative implementation of LeftBracketIndex which uses Array.BinarySearch. I'd recommend adopting it at other places. Candy
View ArticleNew Post: Sparse matrix performance
Thanks again. I've included the change and extended it to the writer as well. Since dense matrices are stored in column-major format it was possible to optimize the dense case slightly as well, along...
View Article