org.objectweb.proactive.ext.scilab.util
Class GridMatrix

java.lang.Object
  extended by org.objectweb.proactive.ext.scilab.util.GridMatrix

public class GridMatrix
extends java.lang.Object

This class represents a set of matrix operations for a parallel computation


Constructor Summary
GridMatrix()
           
 
Method Summary
static FutureDoubleMatrix calMandelbrot(ScilabService service, java.lang.String name, int xres, int yres, double xmin, double xmax, double ymin, double ymax, int precision, int nbBloc)
          Mandelbrot set calculation
static FutureDoubleMatrix calPi(ScilabService service, java.lang.String name, int precision, int nbBloc)
          Pi calculation
static FutureDoubleMatrix mult(ScilabService service, java.lang.String name, double[] matrix1, int nbRow1, int nbCol1, double[] matrix2, int nbRow2, int nbCol2)
          Matrix multiplication
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridMatrix

public GridMatrix()
Method Detail

calMandelbrot

public static FutureDoubleMatrix calMandelbrot(ScilabService service,
                                               java.lang.String name,
                                               int xres,
                                               int yres,
                                               double xmin,
                                               double xmax,
                                               double ymin,
                                               double ymax,
                                               int precision,
                                               int nbBloc)
Mandelbrot set calculation

Parameters:
service -
name - name of matrix result
xres - x-axis resolution
yres - y-axis resolution
xmin -
xmax -
ymin -
ymax -
precision - max number of iterations
nbBloc - number of blocks
Returns:
future of the matrix result

calPi

public static FutureDoubleMatrix calPi(ScilabService service,
                                       java.lang.String name,
                                       int precision,
                                       int nbBloc)
Pi calculation

Parameters:
service -
name - name of matrix result
precision - max of iterations
nbBloc - number of blocks
Returns:
future of the matrix result

mult

public static FutureDoubleMatrix mult(ScilabService service,
                                      java.lang.String name,
                                      double[] matrix1,
                                      int nbRow1,
                                      int nbCol1,
                                      double[] matrix2,
                                      int nbRow2,
                                      int nbCol2)
Matrix multiplication

Parameters:
service -
name - name of matrix result
matrix1 -
nbRow1 -
nbCol1 -
matrix2 -
nbRow2 -
nbCol2 -
Returns:
future of the matrix result


Copyright 2001-2007 INRIA All Rights Reserved.