New Post: Subtract vector from matrix?
The F# extension package does have an unoptimized mapCols function that could be used here, but we have not propagated this back into the core library yet. This could be a useful addition though....
View ArticleNew Post: Example of using foldRows/foldCoumns for matrix
Note that FoldColumns folds over the columns themselves (each of them, individually), not over the column vectors. We should probably add the later as well. Compute column sums with FoldColumns:var m =...
View ArticleNew Post: Example of using foldRows/foldCoumns for matrix
PS: let me know if you have an idea for better naming, to avoid confusing folding over column vectors v.s. folding over the values of each column.
View ArticleNew Post: Very bad design
I fully agree with your assessment that the API compromise did not work out at all and left us with bad usability. After discussing this with a few other users I went forward and made all the...
View ArticleNew Post: Example of using foldRows/foldCoumns for matrix
Thanks. So in the function inside FoldColumns the only thing you have access to is a single cell value at a time. Given that you keep FoldColumns as it is, perhaps FoldByColumns, FoldColumnsList,...
View ArticleNew Post: Example of using foldRows/foldCoumns for matrix
Yes, exactly. FoldColumns has just been added in v3.0.0-beta02, so we can still change it until v3 is released. What about the following naming?FoldColumnValues: renamed from FoldColumns; for each...
View ArticleSource code checked in, #64e9a04819a586f25ae00969382b91c2ee674e23
Release Data Extensions: v3.0.0-beta02
View ArticleNew Post: Version Conflict using MatrixReader
It seems there was indeed some issue, maybe caused by the assembly version of v3.0.0-beta02 being lower than that of v3.0.0-beta01 (4th-part is now always zero). I could not reproduce any issues with...
View ArticleNew Post: Example of using foldRows/foldCoumns for matrix
The proposed naming sounds good to me. Thanks
View ArticleNew Post: TruncatedNormal Distribution
Hello Matthew, Sorry for the delay, I had a surgery last Monday... Yes I think it should stay always with an area under the curve at 1.0 according to my project lead and a statistician that work here....
View ArticleNew Post: Memory doubled when using LUFactor
Hi, I'm solving a large complex dense matrix (10k*10k) by using "void LUFactor(Complex[] data, int order, Int32[] ipiv)". If I understand correctly, LUFactor should be pointed to zgetf2 or zgetrf...
View ArticleNew Post: Memory doubled when using LUFactor
Hi, It does use zgetrf. Are you calling the LUFactor routine directly from the MKL native provider? Thanks, Christoph
View ArticleNew Post: Memory doubled when using LUFactor
Hi Christoph, Here is my small test code:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using...
View ArticleNew Post: Memory doubled when using LUFactor
Thanks for the repro. I can confirm:The process private memory is doubled while LUFactor is running, but freed right before it returnsThe additional memory does not seem to be managed memory. This only...
View ArticleNew Post: Memory doubled when using LUFactor
Hi Christoph, Thanks a lot for the reply. I'm not so good at low-level or native programming. Could you explain a bit more about how to avoid this problem (maybe some lines of code)? Thanks again Yi Luo
View ArticleNew Post: how to do a polynomial fit use Cholesky algorithm
how to do a polynomial fit using Cholesky algorithm. although the lib provides a funciton named .Fit.Polynomial to do the polynomial fit, but is there any options that specified the curve-fitting...
View ArticleNew Post: how to do a polynomial fit use Cholesky algorithm
how to do a polynomial fit using Cholesky algorithm. although the lib provides a funciton named .Fit.Polynomial to do the polynomial fit, but is there any options that specified the curve-fitting...
View ArticleNew Post: Memory doubled when using LUFactor
Just to clarify, this would need to be fixed within Math.NET Numerics itself and the native provider. Some relevant links:Mastering C# StructsStructLayout AttributeMarshalAs Attribute Thanks, Christoph
View ArticleNew Post: how to do a polynomial fit use Cholesky algorithm
Not directly. It seems we'd better provide routines to provide standard design matrices like the polynomial case (Vandermonde matrix), which can then be combined with the existing methods of the...
View Article