shh.csparse
Class UnivCoeff

Object
  extended byUnivCoeff

public class UnivCoeff
extends Object

Given matrices δ1 : C1C2 and δ0 : C0C1 over Z defining a piece C2C1C0 of a cochain complex, the constructor prints out the cohomology H1 with coefficients in both Z and the relevant Fp's, including generating cocycles. The δ's will be destructively altered.

Author:
Mark McConnell

Constructor Summary
UnivCoeff(CSparse delta1, CSparse delta0)
          The constructor runs the jobs described in the comment on the class (UnivCoeff).
 
Method Summary
static void main(String[] args)
          For testing the constructor.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnivCoeff

public UnivCoeff(CSparse delta1,
                 CSparse delta0)
The constructor runs the jobs described in the comment on the class (UnivCoeff).

Throws:
IllegalArgumentException - If delta1 delta0 ≠ 0.
ClassCastException - If some entry in the deltas is not of class SparseEltZ.
RuntimeException - If some things go wrong internally.
Method Detail

main

public static void main(String[] args)
For testing the constructor. Give it 2 × 2 matrices δ1 : C1C2 and δ0 : C0C1 forming a cochain complex as in the comment on the class.

Parameters:
args - The four entries of δ1 in row-major order, followed by the four entries of δ0 in row-major order.