|
Orbital library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object orbital.math.Values
public abstract class Values
Manager for scalar value and arithmetic object value constructor factories.
Manages the current value factories
of your system.
Simple applications will generally use getDefault()
to get the current
system default value factory. While applications that require more control over
the particular arithmetic object implementations will get their own instance
and configure it according to their needs.
Property Name | Property Value |
---|---|
orbital.math.Values.implementation | class name of the ValuesFactory implementation used for creating values and thus returned by getInstance() . |
orbital.math.Values.default | class name of the initial default ValueFactory instance returned by getDefault() .
If not set defaults to value of orbital.math.Values.implementation.
|
ValueFactory
Constructor Summary | |
---|---|
protected |
Values()
|
Method Summary | |
---|---|
static ValueFactory |
getDefault()
Get the (single) default value factory instance. |
static Values |
getDefaultInstance()
Get the (single) default instance of this factory. |
static ValueFactory |
getInstance()
Returns a new value factory with default settings. |
static ValueFactory |
getInstance(java.util.Map parameters)
Returns a new value factory with specified settings. |
static boolean |
isPrimitiveWrapper(java.lang.Class clazz)
Determines whether the specified class is an (old JDK1.0) wrapper for a primitive type. |
static void |
setDefault(ValueFactory newValueFactory)
Set the (single) default value factory instance. |
static void |
setDefaultInstance(Values newValueFactory)
Set the (single) default instance of this factory. |
static java.lang.Number |
toPrimitiveWrapper(Scalar val)
Returns a primitive type wrapper for the specified scalar. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Values()
Method Detail |
---|
public static ValueFactory getInstance()
getInstance(Map)
public static ValueFactory getInstance(java.util.Map parameters)
parameters
- a map containing settings for string
parameters configuring the behaviour of the value factory.
These settings configure the value factory implementation
instantiated. The precise effect of parameters are therefore
implementation-dependent. Some parameters, however, have a
standard semantics.
Implementations do not need to provide all combinations of parameters, though.
Parameter Name | Parameter Value |
---|---|
orbital.math.Vector.sparse | Whether vectors use a sparse (=store only non-zero components with location) or dense (=store all components without locations) representation for their components. |
orbital.math.Matrix.sparse | Whether matrices use a sparse (=store only non-zero components with location) or dense (=store all components without locations) representation for their components. |
orbital.math.Tensor.sparse | Whether tensors use a sparse (=store only non-zero components with location) or dense (=store all components without locations) representation for their components. |
orbital.math.Polynomial.sparse | Whether polynomials use a sparse (=store only non-zero coefficients with exponents) or dense (=store all coefficients without exponents) representation for their coefficients. |
orbital.math.Polynomial.recursive | Whether multivariate polynomials use a recursive (f.ex. (y2+2y+3)x2 + (2y2-1)x + (-2y+1)1 as R[X0][X1]...[Xn-1]) or distributive (f.ex. x2y2+2x2y+2xy2+3x2-x-2y+1 as R(N(I))) representation. |
orbital.math.UnivariatePolynomial.sparse | Whether univariate polynomials use a sparse (=store only non-zero coefficients with exponents) or dense (=store all coefficients without exponents) representation for their coefficients. |
orbital.math.Fraction.normalize | Use "lazy" for lazy normalization only when representative or query is invoked,
"eager" for eager normalization after each operation. |
orbital.math.Quotient.normalize | Use "lazy" for lazy normalization only when representative or query is invoked,
"eager" for eager normalization after each operation. |
orbital.math.Scalar.narrow | Use "auto" for automatic narrowing after each operation,
"none" for explicit normalization , only. |
orbital.math.Scalar.precision |
|
public static final Values getDefaultInstance()
This is the old name for getDefault()
.
setDefault(ValueFactory)
public static final ValueFactory getDefault()
This is the new name for getDefaultInstance()
.
setDefault(ValueFactory)
public static final void setDefaultInstance(Values newValueFactory)
Since changing the default factory may affect many different areas of functionality, this method should only be used if the caller is prepared to reinitialize values which ought to use the new kind of factory.
newValueFactory
- the new default value factory of this Virtual Machine.getDefault()
public static final void setDefault(ValueFactory newValueFactory)
This is the new name for setDefaultInstance(Values)
.
getDefault()
public static boolean isPrimitiveWrapper(java.lang.Class clazz)
Class.isPrimitive()
,
Integer
,
Long
,
Double
,
Float
,
Byte
,
Short
public static java.lang.Number toPrimitiveWrapper(Scalar val)
ValueFactory.valueOf(Number)
,
isPrimitiveWrapper(Class)
|
Orbital library 1.3.0: 11 Apr 2009 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |