jhypercomplex.numbers.cayley_dickson_algebras
Class HypercomplexLattice
java.lang.Object
jhypercomplex.numbers.cayley_dickson_algebras.HypercomplexLattice
- Direct Known Subclasses:
- OctonionLattice, SedenionLattice
public abstract class HypercomplexLattice
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CANONICAL
public static final int CANONICAL
- See Also:
- Constant Field Values
HypercomplexLattice
public HypercomplexLattice(int basis_elements,
int unit_elements)
getUnitElement
public Hypernumber getUnitElement(int nr)
throws java.lang.Exception
- Parameters:
nr - Number of the unit integral elements, counting starts with "1".
- Returns:
- Integral unit hypernumber.
- Throws:
java.lang.Exception
getAllUnitElements
public abstract Hypernumber[] getAllUnitElements()
getBasis
public Hypernumber[] getBasis()
getAllUnitsAsString
public java.lang.String getAllUnitsAsString()
getNumberOfUnitElement
public int getNumberOfUnitElement(Hypernumber h)
throws java.lang.Exception
- Parameters:
h - Hypernumber.
- Returns:
- Number of the element (1,...,UNITS): if h could be identified with one,
-1: else
- Throws:
java.lang.Exception
isUnitElement
public boolean isUnitElement(Hypernumber h,
boolean zero_allowed)
throws java.lang.Exception
- Parameters:
h - Hypernumber.zero_allowed - "0" is accepted to allow for zero divisors.
- Returns:
- 'true' if the hypernumber is an integral unit element,
'false' else.
- Throws:
java.lang.Exception
isIntegralUnitElement
public boolean isIntegralUnitElement(Hypernumber h)
throws java.lang.Exception
- Parameters:
h - Hypernumber
- Returns:
- 'true' if the hypernumber is an integral unit,
'false' else.
- Throws:
java.lang.Exception
getElements
public Hypernumber[] getElements(int from,
int to)
throws java.lang.Exception
- Throws:
java.lang.Exception