Questions tagged [ilnumerics]

ILNumerics is a high performance math library for applications

ILNumerics is a high performance math library for applications. It simplifies the implementation of all kinds of numerical algorithms in convenient, familiar syntax - optimized to the speed of C and FORTRAN.

The library provides:

  • Development tools for Visual Studio
  • Visualization engine
  • Computing engine

.NET is well known for its efficient and automatic garbage collection. However, while being sufficient for most business scenarios, mathematical applications bring more specific requirements to the memory management. Without special care, the runtime - in particular, the garbage collector - would cause a serious performance hit even for middle sized problems. Therefore, ILNumerics introduces a sophisticated memory management which saves the time in GC and therefore roughly doubles the execution speed. This is achieved by:

  • Value semantics for function parameters.
  • After a function has returned, all garbage is cleaned up immediately.
  • Memory is recycled for subsequent array allocations.
  • Lazy array copies - using memory on write access only.
  • Array operations are done in-place whenever possible.

(all text taken from the website)

230 questions
1
vote
2 answers

Intermittent exception at ILNumerics.Misc.ILThreadPool?

I have recently upgraded to ILNumerics version 4.3. I see the above exception frequently popping up in my application when working with ILNumerics arrays. Unfortunately I cudn't reproduce it in the debug mode, so not sure what part of my code is…
Neelima
  • 243
  • 1
  • 8
1
vote
0 answers

Removing mkl_custom.dll from source control

ILNumerics requires 2 native dlls to be loaded: `libiomp5md.dll" and "mkl_custom.dll". Previously, those dlls (and ILNumerics) were managed manually (in a seperated "lib" repository) but now we are going to switch to NuGet. Up to now from Nuget I…
Earth Engine
  • 10,048
  • 5
  • 48
  • 78
1
vote
1 answer

Custom scale for image plots?

Now that we have Image plots capability in ILNumerics, I am replacing all my code to use ImageSc plots inplace of surface plots. For surface plots, we can specify X and Y scale values in the form of grid. Is there any way to modify the index based…
Neelima
  • 243
  • 1
  • 8
1
vote
1 answer

ILNumerics equivalent of MatLab/Octave statement

Question In MatLab/Octave, I have the statement x(isnan(x)) = 0. I am porting this over to ILNumerics in C#. I am having trouble finding the ILNumerics equivalent to the MatLab/Octave statement mentioned. In our case, x is a 2x2 array. What we've…
Jake Smith
  • 2,332
  • 1
  • 30
  • 68
1
vote
2 answers

Plot sometimes does not react to mouse input in windows forms

I'm using an ILPlotcube with line- and point-plots inside a windows forms window. Somehow the mouse control of the PlotCube, like zooming and dragging does not work anymore. For example: i can't zoom into the plot by drawing a rectangle over the…
Robert
  • 101
  • 7
1
vote
2 answers

bsxfun type function in c#

I m trying to do the equivalent of the following matlab function: outmatrix = bsxfun(@minus,inmatrix, invector); in c sharp. I used this: public static ILArray bsxfun(ILArray inmatrix, ILArray invector) { …
nik
  • 1,672
  • 2
  • 17
  • 36
1
vote
1 answer

Have installed ILNumerics into VisualStudio 2012, no "Computing Module" is available

Starting with a fresh install of Visual Studio, I used NuGet console to "Install-Package ILNumerics". I create a new Windows Form project, added a reference to ILNumerics.dll and I can use ILNumerics, so that's fine. However, some of the getting…
1
vote
1 answer

Implicit conversion from big endian byte data to ILNumerics float array?

I have got a huge byte array of big endian floats which I want to convert to ilnumerics float array. Right now, I do the conversion explicitly. I generate system array of floats by reversing 4 bytes at a time and converting to float which can then…
Neelima
  • 243
  • 1
  • 8
1
vote
2 answers

How to convert ILArray into ILArray?
I m using ILNumerics to read and write from/to matfiles. I get some data from a database as object[,] because it contains numbers and headings (strings). The data structure of object[,] loaddata is a mixture of System.String and System.Double,…
nik
  • 1,672
  • 2
  • 17
  • 36
1
vote
1 answer

Implicit conversion from system array to ilnumerics array doesnt retain double precision

When I assign a system array of doubles to an ilnumerics double array, the values are rounded off to nearest integer. This happens particularly for only large arrays. Is there any way in ILnumerics to specify up to how many decimals the rounding…
Neelima
  • 243
  • 1
  • 8
1
vote
0 answers

Flip single axis in 3d coordinate system

Usually the axis in a 3d plot form a right system, in the mathematical sense. For some plots I would like to reverse an axis, usually the y-axis, so that the data is actually plotted as if a mirror transformation would have been done on the…
Daniel
  • 1,522
  • 1
  • 12
  • 25
1
vote
1 answer

Legend for points

I add multiple 3d points sets to a plot cube as follows: points |> List.map (fun (z, size, color, label) -> let points = new ILPoints(label) points.Positions <- positionBuffer z points.Size <- float32 size points.Color <- new…
Daniel
  • 1,522
  • 1
  • 12
  • 25
1
vote
0 answers

ILNumerics: manually created ticks

I created manual ticks like it is shown on the ilnumerics page: http://ilnumerics.net/axis-configuration.html. Let us take the first example with the dates on the x-Axis. My problem is the following: In my program I want use the interactive mouse…
ml1583
  • 23
  • 4
1
vote
1 answer

Most efficient way of matrix aggregation in c# and ILNumerics vs Matlab

I have a large matrix (30000 x 500), a column represents hourly data for the next 3 years, each column is a different scenario, i.e. I have 500 scenarios of prices where each cell in a row has the same timestamp. I need to aggregate this over the…
nik
  • 1,672
  • 2
  • 17
  • 36
1
vote
1 answer

ILNumerics: Get mouse coordinates with ILLinePlot

I'm using ilnumerics with C# on a simple WindowsFormsApplication and created some LinePlots in a PlotCube on an ILPanel. Like in: How to find the 3D coordinates of a surface from the click location of the mouse on the ILNumerics surface plots? i…
ml1583
  • 23
  • 4