org.objectweb.proactive.ext.security.test.jacobi
Class SubMatrix

java.lang.Object
  extended by org.objectweb.proactive.ext.security.test.jacobi.SubMatrix

public class SubMatrix
extends java.lang.Object

Author:
Laurent Baduel

Field Summary
static int DEFAULT_HEIGHT
          Default height value of a submatrix
static int DEFAULT_WIDTH
          Default width value of a submatrix
 
Constructor Summary
SubMatrix()
          Empty constructor
SubMatrix(int x, int y)
          Constructor
SubMatrix(java.lang.String name)
           
 
Method Summary
 void borderCompute()
          Builds the border part of the new submatrix that require the communications with other submatrix are done.
 void buildNeighborhood_MethodBarrier()
          METHODBARRIER
 void buildNeighborhood_NeighborBarrier()
          NEIGHBORBARRIER
 void buildNeighborhood_TotalBarrier()
          BTOTAL BARRIER
 void compute()
          Launch the calculus
 void exchange()
          Exchange the old values with the new
 double get(int x, int y)
          Returns the value at the specified position
 void internalCompute()
          Builds the central part of the new submatrix that does not require communication with other submatrix
 void loop_MethodBarrier()
          Loop METHODBARRIER
 void loop_NeighborBarrier()
          Loop NEIGHBORBARRIER
 void loop_TotalBarrier()
          Loop TOTAL BARRIER
 void sendBordersToNeighbors()
          Sends the border values to the corresponding neighbors
 void setEastBorder(double[] border)
          Set the east border
 void setNorthBorder(double[] border)
          Set the north border
 void setSouthBorder(double[] border)
          Set the south border
 void setWestBorder(double[] border)
          Set the west border
 void stop()
          Stops the submatrix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_WIDTH

public static final int DEFAULT_WIDTH
Default width value of a submatrix

See Also:
Constant Field Values

DEFAULT_HEIGHT

public static final int DEFAULT_HEIGHT
Default height value of a submatrix

See Also:
Constant Field Values
Constructor Detail

SubMatrix

public SubMatrix()
Empty constructor


SubMatrix

public SubMatrix(java.lang.String name)

SubMatrix

public SubMatrix(int x,
                 int y)
Constructor

Parameters:
x - the width of the submatrix
y - the height of the matrix
Method Detail

get

public double get(int x,
                  int y)
Returns the value at the specified position

Parameters:
x - the column of the value
y - the line of the value
Returns:
the value at the specified position

internalCompute

public void internalCompute()
Builds the central part of the new submatrix that does not require communication with other submatrix


borderCompute

public void borderCompute()
Builds the border part of the new submatrix that require the communications with other submatrix are done.


exchange

public void exchange()
Exchange the old values with the new


buildNeighborhood_MethodBarrier

public void buildNeighborhood_MethodBarrier()
METHODBARRIER


buildNeighborhood_NeighborBarrier

public void buildNeighborhood_NeighborBarrier()
NEIGHBORBARRIER


buildNeighborhood_TotalBarrier

public void buildNeighborhood_TotalBarrier()
BTOTAL BARRIER


sendBordersToNeighbors

public void sendBordersToNeighbors()
Sends the border values to the corresponding neighbors


setNorthBorder

public void setNorthBorder(double[] border)
Set the north border

Parameters:
border - - the north border

setSouthBorder

public void setSouthBorder(double[] border)
Set the south border

Parameters:
border - - the south border

setWestBorder

public void setWestBorder(double[] border)
Set the west border

Parameters:
border - - the west border

setEastBorder

public void setEastBorder(double[] border)
Set the east border

Parameters:
border - - the east border

compute

public void compute()
Launch the calculus


loop_MethodBarrier

public void loop_MethodBarrier()
Loop METHODBARRIER


loop_NeighborBarrier

public void loop_NeighborBarrier()
Loop NEIGHBORBARRIER


loop_TotalBarrier

public void loop_TotalBarrier()
Loop TOTAL BARRIER


stop

public void stop()
Stops the submatrix



Copyright 2001-2007 INRIA All Rights Reserved.