using ILNumerics; ILArrayA = ILMath.array (new float[,] { { 1, 2 }, { 3, 4 } }); float element = A[1, 0];
using ILNumerics; ILArrayA = ILMath.rand(3,3); ILArray B = ILMath.rand(3,3); ILArray C = A*B;
using ILNumerics; ILArrayThis code creates a 2x2 array of float values and applies a filter to it, selecting only the elements that are greater than 2. The resulting array B contains the values [3, 4]. The package library for ILArray is ILNumerics.Core.A = ILMath.array (new float[,] { { 1, 2 }, { 3, 4 } }); ILArray filter = A > 2; ILArray B = A[filter];