|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.kjc.sir.linear.transform.LinearTransform
public abstract class LinearTransform
A LinearTransform communicates information
about how to transform one or more linear representations into
a new linear representation (eg combination rules).
For example, for pipeline combinations,
the Linear Transform contains information about what expansion factors to use
for the filters to be combined.
The interface to a LinearTransform is simple the transform()
method, which will return the overall linear representation
that the transform calculates. To create a LinearTransform,
you use one of the static methods in the subclasses to pre-compute
whatever information is necessary, and then you call transform()
on the returned LinearTransform object.
$Id: LinearTransform.java,v 1.8 2006/01/25 17:02:01 thies Exp $
Constructor Summary | |
---|---|
LinearTransform()
|
Method Summary | |
---|---|
static int |
divCeiling(int a,
int b)
Gets the ceiling of the division of two integers. |
static int |
gcd(int[] arr)
Gets the gcd of an array of numbers. |
static int |
gcd(int a,
int b)
Return the greatest factor that evenly divids both m and n (ie the greatest common denominator). |
static int |
lcm(int[] numbers)
Calculates the least common multiple of all the integers contained in the array. |
static int |
lcm(int a,
int b)
Calculates the least common multiple of two integers. |
abstract LinearFilterRepresentation |
transform()
Actually implements the specific transform. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinearTransform()
Method Detail |
---|
public abstract LinearFilterRepresentation transform() throws NoTransformPossibleException
NoTransformPossibleException
public static int lcm(int a, int b)
public static int lcm(int[] numbers)
public static int gcd(int a, int b)
public static int gcd(int[] arr)
public static int divCeiling(int a, int b)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |