jhypercomplex.numbers.cayley_dickson_algebras
Class HypercomplexLattice

java.lang.Object
  extended by jhypercomplex.numbers.cayley_dickson_algebras.HypercomplexLattice
Direct Known Subclasses:
OctonionLattice, SedenionLattice

public abstract class HypercomplexLattice
extends java.lang.Object


Field Summary
static int CANONICAL
           
 
Constructor Summary
HypercomplexLattice(int basis_elements, int unit_elements)
           
 
Method Summary
abstract  Hypernumber[] getAllUnitElements()
           
 java.lang.String getAllUnitsAsString()
           
 Hypernumber[] getBasis()
           
 Hypernumber[] getElements(int from, int to)
           
 int getNumberOfUnitElement(Hypernumber h)
           
 Hypernumber getUnitElement(int nr)
           
 boolean isIntegralUnitElement(Hypernumber h)
           
 boolean isUnitElement(Hypernumber h, boolean zero_allowed)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CANONICAL

public static final int CANONICAL
See Also:
Constant Field Values
Constructor Detail

HypercomplexLattice

public HypercomplexLattice(int basis_elements,
                           int unit_elements)
Method Detail

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