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.
| function | creates ... | example |
|---|---|---|
| zeros | n-dim. ILArray<double> with '0' values | N = ILMath.zeros(4,5,3); |
| ones | n-dim. ILArray<double> with '1' values | N = ILMath.ones(4,5,3); |
| counter | n-dim. ILArray<double> with increasing values | N = ILMath.ones(4,5,3); |
| eye | unity matrix ILArray<double> with '1.0' diagonal | N = ILMath.eyes(5,5); |
| rand | n-dim array ILArray<double> with unity random values | N = ILMath.rand(3,5,2); |
| randn | n-dim array ILArray<double> with normally random values | N = ILMath.randn(3,5,2); |
| ccomplex | complex array ILArray<complex> from real & imag parts | N = ILMath.ccomplex(A,A); |
| vector | row 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.