Module ojalgo
Package org.ojalgo.function.polynomial
Class ScalarPolynomial<N extends Scalar<N>,P extends ScalarPolynomial<N,P>>
- java.lang.Object
-
- org.ojalgo.function.polynomial.AbstractPolynomial<N,P>
-
- org.ojalgo.function.polynomial.ScalarPolynomial<N,P>
-
- All Implemented Interfaces:
java.util.function.DoubleUnaryOperator,java.util.function.Function<N,N>,java.util.function.UnaryOperator<N>,Group,Group.Additive<PolynomialFunction<N>>,Operation,Operation.Addition<PolynomialFunction<N>>,Operation.Multiplication<PolynomialFunction<N>>,Ring<PolynomialFunction<N>>,BasicFunction,BasicFunction.Differentiable<N,PolynomialFunction<N>>,BasicFunction.Integratable<N,PolynomialFunction<N>>,PolynomialFunction<N>,UnaryFunction<N>,Access1D<N>,Mutate1D,Structure1D
- Direct Known Subclasses:
PolynomialC128,PolynomialQ128,PolynomialR128
abstract class ScalarPolynomial<N extends Scalar<N>,P extends ScalarPolynomial<N,P>> extends AbstractPolynomial<N,P>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ojalgo.structure.Access1D
Access1D.Aggregatable<N extends java.lang.Comparable<N>>, Access1D.Collectable<N extends java.lang.Comparable<N>,R extends Mutate1D>, Access1D.ElementView<N extends java.lang.Comparable<N>>, Access1D.SelectionView<N extends java.lang.Comparable<N>>, Access1D.Sliceable<N extends java.lang.Comparable<N>>, Access1D.Visitable<N extends java.lang.Comparable<N>>
-
Nested classes/interfaces inherited from interface org.ojalgo.function.BasicFunction
BasicFunction.Differentiable<N extends java.lang.Comparable<N>,F extends BasicFunction>, BasicFunction.Integratable<N extends java.lang.Comparable<N>,F extends BasicFunction>, BasicFunction.PlainUnary<T,R>
-
Nested classes/interfaces inherited from interface org.ojalgo.algebra.Group
Group.Additive<T>, Group.Multiplicative<T>
-
Nested classes/interfaces inherited from interface org.ojalgo.structure.Mutate1D
Mutate1D.Fillable<N extends java.lang.Comparable<N>>, Mutate1D.Mixable<N extends java.lang.Comparable<N>>, Mutate1D.Modifiable<N extends java.lang.Comparable<N>>, Mutate1D.ModifiableReceiver<N extends java.lang.Comparable<N>>, Mutate1D.Receiver<N extends java.lang.Comparable<N>>, Mutate1D.Sortable
-
Nested classes/interfaces inherited from interface org.ojalgo.algebra.Operation
Operation.Addition<T>, Operation.Division<T>, Operation.Multiplication<T>, Operation.Subtraction<T>
-
Nested classes/interfaces inherited from interface org.ojalgo.structure.Structure1D
Structure1D.BasicMapper<T>, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.Logical<S extends Structure1D,B extends Structure1D.Logical<S,B>>, Structure1D.LongIndex, Structure1D.LoopCallback
-
-
Field Summary
-
Fields inherited from class org.ojalgo.function.polynomial.AbstractPolynomial
DEGREE_ACCURACY
-
-
Constructor Summary
Constructors Constructor Description ScalarPolynomial(BasicArray<N> coefficients)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Nintegrate(N fromPoint, N toPoint)Ninvoke(N arg)Pmultiply(PolynomialFunction<N> multiplicand)PolynomialFunction<N>negate()The additive inverse of this.(package private) doublenorm(int power)-
Methods inherited from class org.ojalgo.function.polynomial.AbstractPolynomial
add, buildDerivative, buildPrimitive, coefficients, count, degree, doubleValue, equals, estimate, estimate, estimate, get, getDerivativeFactor, getPrimitiveFactor, hashCode, invoke, invoke, newInstance, one, power, set, set, set, set, size, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ojalgo.structure.Access1D
asCollectable1D, asKeyed1D, asList, axpy, byteValue, byteValue, dot, doubleValue, elements, floatValue, floatValue, intValue, intValue, longValue, longValue, nonzeros, select, shortValue, shortValue, supplyTo, toList, toRawCopy1D
-
Methods inherited from interface org.ojalgo.structure.Mutate1D
reset, set, set, set, set, set, set, set, set, set, set, set
-
Methods inherited from interface org.ojalgo.function.polynomial.PolynomialFunction
degree, estimate
-
Methods inherited from interface org.ojalgo.function.UnaryFunction
andThen, apply, applyAsDouble, compose, invoke, invoke, invoke, invoke
-
-
-
-
Constructor Detail
-
ScalarPolynomial
ScalarPolynomial(BasicArray<N> coefficients)
-
-
Method Detail
-
multiply
public P multiply(PolynomialFunction<N> multiplicand)
- Specified by:
multiplyin interfaceOperation.Multiplication<N extends Scalar<N>>- Specified by:
multiplyin classAbstractPolynomial<N extends Scalar<N>,P extends ScalarPolynomial<N,P>>- Parameters:
multiplicand- The multiplicand- Returns:
this * multiplicand.
-
negate
public PolynomialFunction<N> negate()
Description copied from interface:Group.AdditiveThe additive inverse of this.- Returns:
-this.
-
norm
double norm(int power)
- Overrides:
normin classAbstractPolynomial<N extends Scalar<N>,P extends ScalarPolynomial<N,P>>
-
-