|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.ethz.iks.util.MathUtils
public final class MathUtils
Math utilities.
| Method Summary | |
|---|---|
static long |
abs(long val)
get the absolute value of a long. |
static long |
higher32(long val)
get the higher 32 bits of a long value. |
static int |
log2(int num)
get the logarithm with base 2. |
static long |
lower32(long val)
get the lower 32 bits of a long value. |
static long |
max(long[] values)
get the maximum within an array of long values. |
static long |
min(long[] values)
get the minimum within an array of long values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int log2(int num)
num - the value.
public static long lower32(long val)
val - the long value.
public static long higher32(long val)
val - the long value.
public static long abs(long val)
val - the (signed) long value.
public static long max(long[] values)
values - the array of long values.
public static long min(long[] values)
values - the array of long values.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||