|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.kjc.sir.linear.LinearComputationTuple
public class LinearComputationTuple
A LinearComputationTuple represents tuples of (input position, coefficent) (eg the terms that are calculated to produce linear output.) The input position is defined as follows: input position 0 is the input generated by peek(0); input position 1 is the input generated by peek(1) and so on. The primary use of a tuple is to determine redundant computation across filter executions, and the correspondence of position to peek expressions in subsequent firings of the work function as explained in LinearRedundancy.
Method Summary | |
---|---|
boolean |
equals(Object o)
Two tuples are equal if their position and coefficient are equal. |
ComplexNumber |
getCoefficient()
Return the coefficient of this tuple. |
int |
getPosition()
Returns the input position of the data that this tuple uses. |
int |
hashCode()
Reimplement hashcode so that if two tuples are equal, their hashcodes are also equal. |
String |
toString()
Pretty print. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public ComplexNumber getCoefficient()
public int getPosition()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |