|
Copyright 2008 - 2009 Tony Morris, Runar Bjarnason, Tom Adams, Brad Clow, Ricky Clarkson, Nick Partridge, Jason Zaugg This software is released under an open source BSD licence. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfj.function.BigIntegers
public final class BigIntegers
Curried functions over Integers.
Field Summary | |
---|---|
static F<BigInteger,BigInteger> |
abs
Absolute value. |
static F<BigInteger,F<BigInteger,BigInteger>> |
add
Curried Integer addition. |
static F<BigInteger,F<BigInteger,BigInteger>> |
multiply
Curried Integer multiplication. |
static F<BigInteger,BigInteger> |
negate
Negation. |
static F<BigInteger,F<Integer,BigInteger>> |
power
Power. |
static F<BigInteger,F<BigInteger,BigInteger>> |
remainder
Remainder. |
static F<BigInteger,F<BigInteger,BigInteger>> |
subtract
Curried Integer subtraction. |
Method Summary | |
---|---|
static BigInteger |
product(List<BigInteger> ints)
Returns the product of a list of big integers. |
static BigInteger |
sum(List<BigInteger> ints)
Sums a list of big integers. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final F<BigInteger,F<BigInteger,BigInteger>> add
public static final F<BigInteger,F<BigInteger,BigInteger>> multiply
public static final F<BigInteger,F<BigInteger,BigInteger>> subtract
public static final F<BigInteger,BigInteger> negate
public static final F<BigInteger,BigInteger> abs
public static final F<BigInteger,F<BigInteger,BigInteger>> remainder
public static final F<BigInteger,F<Integer,BigInteger>> power
Method Detail |
---|
public static BigInteger sum(List<BigInteger> ints)
ints
- A list of big integers to sum.
public static BigInteger product(List<BigInteger> ints)
ints
- A list of big integers to multiply together.
|
Copyright 2008 - 2009 Tony Morris, Runar Bjarnason, Tom Adams, Brad Clow, Ricky Clarkson, Nick Partridge, Jason Zaugg This software is released under an open source BSD licence. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |