- java.lang.Object
-
- swim.math.R
-
- All Implemented Interfaces:
Comparator<Double>
,Debug
,AffineSpace<Double,Double,Double>
,CompleteField<Double>
,Field<Double>
,OrderedField<Double>
,OrderedRing<Double>
,RealField<Double>
,Ring<Double>
,TensorSpace<Double,Double>
,VectorModule<Double,Double>
,VectorSpace<Double,Double>
public class R extends Object implements AffineSpace<Double,Double,Double>, VectorSpace<Double,Double>, RealField<Double>, Debug
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
R()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
scalar
public R scalar()
- Specified by:
scalar
in interfaceAffineSpace<Double,Double,Double>
- Specified by:
scalar
in interfaceTensorSpace<Double,Double>
- Specified by:
scalar
in interfaceVectorModule<Double,Double>
- Specified by:
scalar
in interfaceVectorSpace<Double,Double>
-
dimensions
public TensorDims dimensions()
- Specified by:
dimensions
in interfaceTensorSpace<Double,Double>
-
origin
public final Double origin()
- Specified by:
origin
in interfaceAffineSpace<Double,Double,Double>
-
zero
public final Double zero()
- Specified by:
zero
in interfaceRing<Double>
- Specified by:
zero
in interfaceTensorSpace<Double,Double>
- Specified by:
zero
in interfaceVectorModule<Double,Double>
- Specified by:
zero
in interfaceVectorSpace<Double,Double>
-
add
public final Double add(Double a, Double b)
- Specified by:
add
in interfaceRing<Double>
- Specified by:
add
in interfaceTensorSpace<Double,Double>
- Specified by:
add
in interfaceVectorModule<Double,Double>
- Specified by:
add
in interfaceVectorSpace<Double,Double>
-
opposite
public final Double opposite(Double a)
- Specified by:
opposite
in interfaceRing<Double>
- Specified by:
opposite
in interfaceTensorSpace<Double,Double>
- Specified by:
opposite
in interfaceVectorModule<Double,Double>
- Specified by:
opposite
in interfaceVectorSpace<Double,Double>
-
subtract
public final Double subtract(Double a, Double b)
- Specified by:
subtract
in interfaceRing<Double>
- Specified by:
subtract
in interfaceTensorSpace<Double,Double>
- Specified by:
subtract
in interfaceVectorModule<Double,Double>
- Specified by:
subtract
in interfaceVectorSpace<Double,Double>
-
multiply
public final Double multiply(Double a, Double b)
- Specified by:
multiply
in interfaceRing<Double>
- Specified by:
multiply
in interfaceTensorSpace<Double,Double>
- Specified by:
multiply
in interfaceVectorModule<Double,Double>
- Specified by:
multiply
in interfaceVectorSpace<Double,Double>
-
combine
public Double combine(Double a, Double u, Double b, Double v)
- Specified by:
combine
in interfaceTensorSpace<Double,Double>
- Specified by:
combine
in interfaceVectorModule<Double,Double>
- Specified by:
combine
in interfaceVectorSpace<Double,Double>
-
translate
public final Double translate(Double p, Double v)
- Specified by:
translate
in interfaceAffineSpace<Double,Double,Double>
-
difference
public final Double difference(Double p, Double q)
- Specified by:
difference
in interfaceAffineSpace<Double,Double,Double>
-
pow
public final Double pow(Double b, Double e)
- Specified by:
pow
in interfaceCompleteField<Double>
-
exp
public final Double exp(Double a)
- Specified by:
exp
in interfaceCompleteField<Double>
-
log
public final Double log(Double a)
- Specified by:
log
in interfaceCompleteField<Double>
-
sqrt
public final Double sqrt(Double a)
- Specified by:
sqrt
in interfaceCompleteField<Double>
-
hypot
public final Double hypot(Double x, Double y)
- Specified by:
hypot
in interfaceCompleteField<Double>
-
sin
public final Double sin(Double a)
- Specified by:
sin
in interfaceCompleteField<Double>
-
cos
public final Double cos(Double a)
- Specified by:
cos
in interfaceCompleteField<Double>
-
tan
public final Double tan(Double a)
- Specified by:
tan
in interfaceCompleteField<Double>
-
asin
public final Double asin(Double a)
- Specified by:
asin
in interfaceCompleteField<Double>
-
acos
public final Double acos(Double a)
- Specified by:
acos
in interfaceCompleteField<Double>
-
atan
public final Double atan(Double a)
- Specified by:
atan
in interfaceCompleteField<Double>
-
atan2
public final Double atan2(Double y, Double x)
- Specified by:
atan2
in interfaceCompleteField<Double>
-
sinh
public final Double sinh(Double x)
- Specified by:
sinh
in interfaceCompleteField<Double>
-
cosh
public final Double cosh(Double x)
- Specified by:
cosh
in interfaceCompleteField<Double>
-
tanh
public final Double tanh(Double x)
- Specified by:
tanh
in interfaceCompleteField<Double>
-
sigmoid
public final Double sigmoid(Double x)
- Specified by:
sigmoid
in interfaceCompleteField<Double>
-
rectify
public final Double rectify(Double x)
- Specified by:
rectify
in interfaceCompleteField<Double>
-
abs
public final Double abs(Double a)
- Specified by:
abs
in interfaceOrderedRing<Double>
-
ceil
public final Double ceil(Double a)
- Specified by:
ceil
in interfaceCompleteField<Double>
-
floor
public final Double floor(Double a)
- Specified by:
floor
in interfaceCompleteField<Double>
-
round
public final Double round(Double a)
- Specified by:
round
in interfaceCompleteField<Double>
-
compare
public final int compare(Double a, Double b)
- Specified by:
compare
in interfaceComparator<Double>
- Specified by:
compare
in interfaceOrderedRing<Double>
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
field
public static R field()
-
-