Creating ILArray<> with ILMath

Essentially almost all functions of the ILMath class create ILArray<>'s of numeric types. Here we will only discover those, which create arrays from the scratch.


functioncreates ...example
zerosn-dim. ILArray<double> with '0' valuesN = ILMath.zeros(4,5,3);
onesn-dim. ILArray<double> with '1' valuesN = ILMath.ones(4,5,3);
countern-dim. ILArray<double> with increasing valuesN = ILMath.ones(4,5,3);
eyeunity matrix ILArray<double> with '1.0' diagonalN = ILMath.eyes(5,5);
randn-dim array ILArray<double> with unity random valuesN = ILMath.rand(3,5,2);
randnn-dim array ILArray<double> with normally random valuesN = ILMath.randn(3,5,2);
ccomplexcomplex array ILArray<complex> from real & imag partsN = ILMath.ccomplex(A,A);
vectorrow vector as ILArray<double> N = ILMath.vector(1.0,20.0);

For more details on functions of the ILMath class consult the class documentation .
All functions listed here will create solid arrays. For more information about the referencing model of ILNumerics.Net consult the inside ILLibraray: referencing tutorial.

Valid CSS! Valid XHTML 1.0 Transitional