@Deprecated public final class BigScalar extends Number implements Scalar<BigDecimal>, NumberContext.Enforceable<BigScalar>
Scalar.Factory<N extends Number>
ScalarOperation.Addition<T,N extends Number>, ScalarOperation.Division<T,N extends Number>, ScalarOperation.Multiplication<T,N extends Number>, ScalarOperation.Subtraction<T,N extends Number>
Modifier and Type | Field and Description |
---|---|
static Scalar.Factory<BigDecimal> |
FACTORY
Deprecated.
|
static BigScalar |
NEG
Deprecated.
|
static BigScalar |
ONE
Deprecated.
|
static BigScalar |
TWO
Deprecated.
|
static BigScalar |
ZERO
Deprecated.
|
Constructor and Description |
---|
BigScalar()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
BigScalar |
add(BigDecimal arg)
Deprecated.
|
BigScalar |
add(double arg)
Deprecated.
|
int |
compareTo(BigDecimal reference)
Deprecated.
|
BigScalar |
conjugate()
Deprecated.
This method will (most likely) be moved to some other interface in the future! Just have to figure
out where it fits...
|
BigScalar |
divide(BigDecimal arg)
Deprecated.
|
BigScalar |
divide(double arg)
Deprecated.
|
double |
doubleValue()
Deprecated.
|
BigScalar |
enforce(NumberContext context)
Deprecated.
|
boolean |
equals(Object obj)
Deprecated.
|
float |
floatValue()
Deprecated.
|
BigDecimal |
get()
Deprecated.
|
int |
hashCode()
Deprecated.
|
int |
intValue()
Deprecated.
|
BigScalar |
invert()
Deprecated.
The multiplicative inverse.
|
boolean |
isAbsolute()
Deprecated.
|
static boolean |
isAbsolute(BigDecimal value)
Deprecated.
|
boolean |
isSmall(double comparedTo)
Deprecated.
|
static boolean |
isSmall(double comparedTo,
BigDecimal value)
Deprecated.
|
long |
longValue()
Deprecated.
|
BigScalar |
multiply(BigDecimal arg)
Deprecated.
|
BigScalar |
multiply(double arg)
Deprecated.
|
BigScalar |
negate()
Deprecated.
The additive inverse of this.
|
double |
norm()
Deprecated.
this == this.signum().multiply(this.norm()) |
static BigScalar |
of(BigDecimal value)
Deprecated.
|
BigScalar |
signum()
Deprecated.
this == this.signum().multiply(this.norm()) |
BigScalar |
subtract(BigDecimal arg)
Deprecated.
|
BigScalar |
subtract(double arg)
Deprecated.
|
BigDecimal |
toBigDecimal()
Deprecated.
|
String |
toString()
Deprecated.
|
String |
toString(NumberContext context)
Deprecated.
|
static BigScalar |
valueOf(double value)
Deprecated.
|
static BigScalar |
valueOf(Number number)
Deprecated.
|
byteValue, shortValue
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, divide, multiply, subtract, toPlainString
byteValue, shortValue
public static final Scalar.Factory<BigDecimal> FACTORY
public static final BigScalar NEG
public static final BigScalar ONE
public static final BigScalar TWO
public static final BigScalar ZERO
public static boolean isAbsolute(BigDecimal value)
public static boolean isSmall(double comparedTo, BigDecimal value)
public static BigScalar of(BigDecimal value)
public static BigScalar valueOf(double value)
public BigScalar add(BigDecimal arg)
add
in interface ScalarOperation.Addition<Scalar<BigDecimal>,BigDecimal>
this + scalarAddend
.public BigScalar add(double arg)
add
in interface ScalarOperation.Addition<Scalar<BigDecimal>,BigDecimal>
this + scalarAddend
.public int compareTo(BigDecimal reference)
compareTo
in interface Comparable<BigDecimal>
public BigScalar conjugate()
VectorSpace
This method will (most likely) be moved to some other interface in the future! Just have to figure out where it fits...
The conjugate transpose of a matrix and/or the conjugate of a scalar/field like ComplexNumber or Quaternion.
The conjugate transpose of a real matrix is simply its transpose.
conjugate
in interface VectorSpace<Scalar<BigDecimal>,BigDecimal>
public BigScalar divide(BigDecimal arg)
divide
in interface ScalarOperation.Division<Scalar<BigDecimal>,BigDecimal>
this / scalarDivisor
.public BigScalar divide(double arg)
divide
in interface ScalarOperation.Division<Scalar<BigDecimal>,BigDecimal>
this / scalarDivisor
.public double doubleValue()
doubleValue
in interface AccessScalar<BigDecimal>
doubleValue
in class Number
Number.doubleValue()
public BigScalar enforce(NumberContext context)
enforce
in interface NumberContext.Enforceable<BigScalar>
public float floatValue()
floatValue
in interface AccessScalar<BigDecimal>
floatValue
in class Number
Number.floatValue()
public BigDecimal get()
get
in interface AccessScalar<BigDecimal>
public int intValue()
intValue
in interface AccessScalar<BigDecimal>
intValue
in class Number
Number.intValue()
public BigScalar invert()
Group.Multiplicative
invert
in interface Group.Multiplicative<Scalar<BigDecimal>>
IDENTITY / this
.public boolean isAbsolute()
isAbsolute
in interface Scalar<BigDecimal>
Scalar.isAbsolute()
public boolean isSmall(double comparedTo)
isSmall
in interface NormedVectorSpace<Scalar<BigDecimal>,BigDecimal>
comparedTo
- What to compare withpublic long longValue()
longValue
in interface AccessScalar<BigDecimal>
longValue
in class Number
Number.longValue()
public BigScalar multiply(BigDecimal arg)
multiply
in interface ScalarOperation.Multiplication<Scalar<BigDecimal>,BigDecimal>
this * multiplicand
.public BigScalar multiply(double arg)
multiply
in interface ScalarOperation.Multiplication<Scalar<BigDecimal>,BigDecimal>
this * scalarMultiplicand
.public BigScalar negate()
Group.Additive
negate
in interface Group.Additive<Scalar<BigDecimal>>
-this
.public double norm()
NormedVectorSpace
this == this.signum().multiply(this.norm())
norm
in interface NormedVectorSpace<Scalar<BigDecimal>,BigDecimal>
public BigScalar signum()
NormedVectorSpace
this == this.signum().multiply(this.norm())
signum
in interface NormedVectorSpace<Scalar<BigDecimal>,BigDecimal>
public BigScalar subtract(BigDecimal arg)
subtract
in interface ScalarOperation.Subtraction<Scalar<BigDecimal>,BigDecimal>
this - scalarSubtrahend
.public BigScalar subtract(double arg)
subtract
in interface ScalarOperation.Subtraction<Scalar<BigDecimal>,BigDecimal>
this - scalarSubtrahend
.public BigDecimal toBigDecimal()
toBigDecimal
in interface Scalar<BigDecimal>
public String toString(NumberContext context)
toString
in interface Scalar<BigDecimal>
Copyright © 2019 Optimatika. All rights reserved.