repthy
Class HeckeAlgebraElt

Object
  extended byHeckeAlgebraElt

public class HeckeAlgebraElt
extends Object

An element of a given HeckeAlgebra HZ(G, H).

Author:
Mark McConnell

Constructor Summary
HeckeAlgebraElt(HeckeAlgebra alg)
          Constructs the zero element in the algebra.
HeckeAlgebraElt(HeckeAlgebra alg, GroupElt g)
          Constructs the element 1*(g) in the algebra.
 
Method Summary
 HeckeAlgebraElt add(HeckeAlgebraElt y)
          Returns a new HeckeAlgebraElt that's the sum of this and y.
 boolean equals(Object o)
          Returns true only when the underlying HeckeAlgebras are equal and the coefficients are termwise equal.
 int hashCode()
          Consistent with equals(java.lang.Object).
 HeckeAlgebraElt mult(HeckeAlgebraElt y)
          Returns a new HeckeAlgebraElt that's the product of this and y.
 HeckeAlgebraElt mult(long a)
          Returns a new HeckeAlgebraElt that's this times the scalar a.
 void setName(String x)
          Sets a name for toString() to return.
 String toString()
           
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HeckeAlgebraElt

public HeckeAlgebraElt(HeckeAlgebra alg)
Constructs the zero element in the algebra.


HeckeAlgebraElt

public HeckeAlgebraElt(HeckeAlgebra alg,
                       GroupElt g)
Constructs the element 1*(g) in the algebra.

Method Detail

equals

public boolean equals(Object o)
Returns true only when the underlying HeckeAlgebras are equal and the coefficients are termwise equal.


hashCode

public int hashCode()
Consistent with equals(java.lang.Object).


mult

public HeckeAlgebraElt mult(HeckeAlgebraElt y)
Returns a new HeckeAlgebraElt that's the product of this and y.

Throws:
IllegalArgumentException - If the underlying HeckeAlgebras aren't equal.

add

public HeckeAlgebraElt add(HeckeAlgebraElt y)
Returns a new HeckeAlgebraElt that's the sum of this and y.

Throws:
IllegalArgumentException - If the underlying HeckeAlgebras aren't equal.

mult

public HeckeAlgebraElt mult(long a)
Returns a new HeckeAlgebraElt that's this times the scalar a.

Throws:
IllegalArgumentException - If the underlying HeckeAlgebras aren't equal.

setName

public void setName(String x)
Sets a name for toString() to return. To remove the name, set it to null.


toString

public String toString()