Static Public Member Functions | |
| static T[] | copy< T > (T[] src, T[] dst) |
| Copies the contents of an array. | |
| static double | dist (Complex[] a, Complex[] b) |
| Computes the Euclidean distance between two vectors. | |
| static int | Log2 (int n) |
Calculates the minimal number of bits necessary to store numbers . | |
| static int | Exp2 (int n) |
Computes . | |
| static bool | IsPowerOf2 (int n) |
| Checks that the number is a power of 2. | |
| static void | PrintArray< T > (T[] t, params string[] name) |
| Pretty-prints the contents of an array. | |
Definition at line 9 of file Utils.cs.
| static T [] copy< T > | ( | T[] | src, | |
| T[] | dst | |||
| ) | [static] |
Copies the contents of an array.
| src | the source array. | |
| dst | the target array. |
dst. This method assumes that both src and dst are not null. The arrays do not have to be of the same length. If the src array is shorter than dst, then the remining elements of dst are unchanged. If src is not longer than dst, then the remaining elements of src are not copied. | static bool IsPowerOf2 | ( | int | n | ) | [static] |
| static int Log2 | ( | int | n | ) | [static] |
| static void PrintArray< T > | ( | T[] | t, | |
| params string[] | name | |||
| ) | [static] |
Pretty-prints the contents of an array.
| t | an array whose content is to be printed. | |
| name | an optional name for the array. |
1.5.8