jmathlib.toolbox.jmathlib.matrix._private.Jampack
Class Parameters

java.lang.Object
  extended by jmathlib.toolbox.jmathlib.matrix._private.Jampack.Parameters

public class Parameters
extends java.lang.Object

Parameter is a class containing global parameters for Jampack.

Version:
Pre-alpha
Author:
G. W. Stewart

Field Summary
protected static int BaseIndex
          The base index
protected static boolean BaseIndexNotChangeable
          Flag allowing only one change in base index
protected static boolean History
          The history flag indicating whether to save decompositions
protected static int OutputFieldWidth
          Output field width.
protected static int OutputFracPlaces
          Number of places to the right of the decimal point.
protected static int PageWidth
          Output page width
 
Constructor Summary
Parameters()
           
 
Method Summary
static int getBaseIndex()
          Returns the base index
static void setBaseIndex(int bx)
          Resets the default base index.
static void setHistory()
          Sets the history flag.
static void setOutputParams(int width, int frac, int pagewidth)
          Changes the output parameters.
static void unsetHistory()
          Unsets the history flag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BaseIndex

protected static int BaseIndex
The base index


BaseIndexNotChangeable

protected static boolean BaseIndexNotChangeable
Flag allowing only one change in base index


History

protected static boolean History
The history flag indicating whether to save decompositions


OutputFieldWidth

protected static int OutputFieldWidth
Output field width.


OutputFracPlaces

protected static int OutputFracPlaces
Number of places to the right of the decimal point.


PageWidth

protected static int PageWidth
Output page width

Constructor Detail

Parameters

public Parameters()
Method Detail

getBaseIndex

public static int getBaseIndex()
Returns the base index


setBaseIndex

public static void setBaseIndex(int bx)
                         throws JampackException
Resets the default base index.

Parameters:
xb - The new base index
Throws:
JampackException - Thrown when the base indices are not changable.

setHistory

public static void setHistory()
Sets the history flag.


unsetHistory

public static void unsetHistory()
Unsets the history flag.


setOutputParams

public static void setOutputParams(int width,
                                   int frac,
                                   int pagewidth)
Changes the output parameters. Nonpositive parameters are ignored.

Parameters:
width - The new field width
frac - The new number of places to the right of the decimal
pagewidth - The new page width

FOOTER

BOTTOM