Rob Hague
Rob Hague
Actually I realise this breaks behaviour around double.NaN :( Closing ```csharp [Test] public void DenseVsSparse() { Matrix m = Matrix.Build.DenseOfArray(new double[,] { { double.NaN, 0 }, { 0, 0 }...
`SparseMatrix.DoMultiply` also exhibits similar NaN behaviour. The test added in commit 4 has 6 (out of 324) failures on master: Failures on master: Test | Error Message --- | ---...
> CI Build fails It fails the same 9 tests as the comment above, relating to NaN/Inf behaviour differences between Sparse and Dense multiplication (AFAIR): those which exist already on...
Use `CsvConfiguration.TrimOptions` e.g. ```c# void Main() { string csvString = """ FUND REDEMPTION FEE, DEFERRED SALES CHARGE value1,value2 """; CsvConfiguration config = new(CultureInfo.InvariantCulture) { TrimOptions = TrimOptions.Trim }; using StringReader...
(linking #504) Indeed I don't think there's any way to trim out embedded resources from an assembly. But I think there's a way forward: The sike code is marked obsolete,...
Nice one. I put my theory to a quick test, by embedding the resultant uint[] arrays in the source I was able to see the assembly trimmed down to ~2.2MB...
> If you rely on ByteCount to correctly count the bytes, and move the stream's position forward by that many bytes. @kikaragyozov could you share a small example showing what...
Ok I think I understand your scenario, but (IMO) it's probably difficult to achieve 100% correctness given that the byte-level/encoding functionality is done at the `StreamReader` and the `CsvParser` sits...
Yeah it's a bit tricky because `encoder.GetByteCount` does not alter the state. From the [docs](https://learn.microsoft.com/en-us/dotnet/api/system.text.encoder.getbytecount?view=net-7.0): > This method does not affect the state of the encoder. > > To calculate...
Hi @kikaragyozov I gave it a go in #2106, could you please check it solves your problems?