BooleanArray Class Reference


Static Public Member Functions

static void main (String[] args)
static void main (String[] args)

Detailed Description

Definition at line 16 of file BooleanArray.java.


Member Function Documentation

static void BooleanArray::main ( String[]  args  )  [inline, static]

Definition at line 18 of file BooleanArray.java.

References a, b, c, javasci::SciAbstractArray::disp(), javasci::SciBooleanArray::getData(), javasci::SciBooleanArray::GetElement(), javasci::SciAbstractArray::getNumberOfCols(), and javasci::SciAbstractArray::getNumberOfRows().

00018                                          {
00019         int col=4;
00020         int row=2;
00021         int r,c;
00022         boolean [] b=new boolean[row*col];
00023         
00024         SciBooleanArray a = new SciBooleanArray("A",row,col);
00025         SciBooleanArray bsci = new SciBooleanArray("B",row,col);
00026         
00027         Scilab.Exec("A=[%t,%t,%t,%f;%f %t %t %t];");
00028         System.out.println("----------------------------------------------------");
00029         a.disp();
00030         System.out.println("----------------------------------------------------");
00031         for(r=1;r<=a.getNumberOfRows();r++)
00032     {
00033      for(c=1;c<=a.getNumberOfCols();c++)
00034      {
00035         System.out.print("A("+(r)+","+(c)+")="+a.GetElement(r,c)+"  ");
00036      }
00037      System.out.println(" ");
00038     }
00039         System.out.println("----------------------------------------------------");
00040         
00041         b=a.getData();
00042         
00043         for(r=0;r<row;r++)
00044     {
00045      for(c=0;c<col;c++)
00046      {
00047         System.out.print("b("+r+","+(c)+")="+ b[c*row+r] +"  ");
00048      }
00049      System.out.println(" ");
00050     }
00051         System.out.println("----------------------------------------------------");
00052         Scilab.Exec("B=~A;");
00053     bsci.disp();
00054     System.out.println("----------------------------------------------------");
00055                 System.out.println("A ScilabType : "+Scilab.TypeVar("A"));
00056                 System.out.println("B ScilabType : "+Scilab.TypeVar("B"));
00057                 System.out.println("----------------------------------------------------");
00058     Scilab.Finish();
00059   }

Here is the call graph for this function:

static void BooleanArray::main ( String[]  args  )  [inline, static]

Definition at line 18 of file BooleanArray.java.

References a, b, c, javasci::SciAbstractArray::disp(), javasci::SciBooleanArray::getData(), javasci::SciBooleanArray::GetElement(), javasci::SciAbstractArray::getNumberOfCols(), and javasci::SciAbstractArray::getNumberOfRows().

00018                                          {
00019         int col=4;
00020         int row=2;
00021         int r,c;
00022         boolean [] b=new boolean[row*col];
00023         
00024         SciBooleanArray a = new SciBooleanArray("A",row,col);
00025         SciBooleanArray bsci = new SciBooleanArray("B",row,col);
00026         
00027         Scilab.Exec("A=[%t,%t,%t,%f;%f %t %t %t];");
00028         System.out.println("----------------------------------------------------");
00029         a.disp();
00030         System.out.println("----------------------------------------------------");
00031         for(r=1;r<=a.getNumberOfRows();r++)
00032     {
00033      for(c=1;c<=a.getNumberOfCols();c++)
00034      {
00035         System.out.print("A("+(r)+","+(c)+")="+a.GetElement(r,c)+"  ");
00036      }
00037      System.out.println(" ");
00038     }
00039         System.out.println("----------------------------------------------------");
00040         
00041         b=a.getData();
00042         
00043         for(r=0;r<row;r++)
00044     {
00045      for(c=0;c<col;c++)
00046      {
00047         System.out.print("b("+r+","+(c)+")="+ b[c*row+r] +"  ");
00048      }
00049      System.out.println(" ");
00050     }
00051         System.out.println("----------------------------------------------------");
00052         Scilab.Exec("B=~A;");
00053     bsci.disp();
00054     System.out.println("----------------------------------------------------");
00055                 System.out.println("A ScilabType : "+Scilab.TypeVar("A"));
00056                 System.out.println("B ScilabType : "+Scilab.TypeVar("B"));
00057                 System.out.println("----------------------------------------------------");
00058     Scilab.Finish();
00059   }

Here is the call graph for this function:


The documentation for this class was generated from the following files:

Generated on Tue Sep 9 18:22:59 2008 for Scilab [trunk] by  doxygen 1.5.5