Overview | Package | Class | Tree | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class Jama.examples.MagicSquareExample

java.lang.Object
  |
  +--Jama.examples.MagicSquareExample

public class MagicSquareExample
extends java.lang.Object
Example of use of Matrix Class, featuring magic squares.


Method Summary
static java.lang.String fixedWidthDoubletoString(double x, int w, int d)
          Format double with Fw.d.
static java.lang.String fixedWidthIntegertoString(int n, int w)
          Format integer with Iw.
static Matrix magic(int n)
          Generate magic square test matrix.
static void main(java.lang.String[] argv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Method Detail

magic

public static Matrix magic(int n)
Generate magic square test matrix.

fixedWidthDoubletoString

public static java.lang.String fixedWidthDoubletoString(double x,
                                              int w,
                                              int d)
Format double with Fw.d.

fixedWidthIntegertoString

public static java.lang.String fixedWidthIntegertoString(int n,
                                               int w)
Format integer with Iw.

main

public static void main(java.lang.String[] argv)

Overview | Package | Class | Tree | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD