jhypercomplex.multiplication_tables
Class SignTable

java.lang.Object
  extended by jhypercomplex.multiplication_tables.MultiplicationTable
      extended by jhypercomplex.multiplication_tables.SignTable

public class SignTable
extends MultiplicationTable


Constructor Summary
SignTable()
           
 
Method Summary
 java.lang.String getBinarySignMask()
          The signs of the upper triangle are mapped according to: "-" --> 0 "+" --> 1 and the result is concatenated.
 java.lang.String[][] getRandomSignTableAsArray(int dimension)
           
 boolean isNormalizedHadamardMatrix()
          REQUIRES: The sign matrix is assumed to be normalized.
 void setRandomSignTableAsArray(int dimension)
          TODO at the moment only implemented for a non-split algebra.
 
Methods inherited from class jhypercomplex.multiplication_tables.MultiplicationTable
getComparisonTable, getCopy, getDeterminant2, getMultTableAsArray, getMultTableAsHtml, getMultTableAsHtml, getMultTableAsHtml, getMultTableAsHtml, getMultTableListAsHtml, getMultTableStringDelimited, getMultTableStringDelimited, getNormedMultiplicationTable, getNormedMultiplicationTable, getNormedMultTableStringDelimited, getSignTable, getSignTable, getSignTableAsHtml, getSignTableAsHtml, getSignTableStringDelimited, getSize, getTableView, getUnsignedMultTableStringDelimited, getUnsignedTable, getUnsignedTable, isAntiSymmetrical, isEqualTables, isFanoPlane, swapColumns, swapRows
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignTable

public SignTable()
Method Detail

getBinarySignMask

public java.lang.String getBinarySignMask()
                                   throws java.lang.Exception
The signs of the upper triangle are mapped according to: "-" --> 0 "+" --> 1 and the result is concatenated. The border elements are excluded. Example: + + + + + - + - + - - + - The relevant upper triangle if + - - which is mapped to "100". (This class is intended to facilitate the comparison of different sign tables).

Parameters:
dimension -
Returns:
Throws:
java.lang.Exception

setRandomSignTableAsArray

public void setRandomSignTableAsArray(int dimension)
                               throws java.lang.Exception
TODO at the moment only implemented for a non-split algebra. A sign table with random entries is generated, obeying the constraints the that the number if of sign is "balanced". That is each row and each column contains an equal number of "+"- and "-"-signs. (I.e. the matrix is isomorphic to a Hadamard matrix). Furthermore this construction builds upon a certain signature (e.g. non-split), i.e. the diagonal of the sign matrix is fixed.

Parameters:
dimenion - Dimension of the sign matrix. Only dimensions 2^n are allowed (i,e, 1,2,4,8,16,...).
Throws:
java.lang.Exception

getRandomSignTableAsArray

public java.lang.String[][] getRandomSignTableAsArray(int dimension)
                                               throws java.lang.Exception
Throws:
java.lang.Exception

isNormalizedHadamardMatrix

public boolean isNormalizedHadamardMatrix()
                                   throws java.lang.Exception
REQUIRES: The sign matrix is assumed to be normalized. Checks if the number of "+" and "-" entries are the same for every row (except the first one).

Returns:
Throws:
java.lang.Exception