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:
DoubleUnaryOperator,Function<N,,N> 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 Comparable<N>>, Access1D.Collectable<N extends Comparable<N>,R extends Mutate1D>, Access1D.ElementView<N extends Comparable<N>>, Access1D.SelectionView<N extends Comparable<N>>, Access1D.Sliceable<N extends Comparable<N>>, Access1D.Visitable<N extends Comparable<N>> Nested classes/interfaces inherited from interface org.ojalgo.function.BasicFunction
BasicFunction.Differentiable<N extends Comparable<N>,F extends BasicFunction>, BasicFunction.Integratable<N extends 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 Comparable<N>>, Mutate1D.Mixable<N extends Comparable<N>>, Mutate1D.Modifiable<N extends Comparable<N>>, Mutate1D.ModifiableReceiver<N extends Comparable<N>>, Mutate1D.Receiver<N extends Comparable<N>>, Mutate1D.SortableNested 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 -
Method Summary
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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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, toRawCopy1DMethods inherited from interface java.util.function.DoubleUnaryOperator
andThen, composeMethods inherited from interface org.ojalgo.structure.Mutate1D
reset, set, set, set, set, set, set, set, set, set, set, setMethods inherited from interface org.ojalgo.function.polynomial.PolynomialFunction
degree, estimateMethods inherited from interface org.ojalgo.function.UnaryFunction
andThen, apply, applyAsDouble, compose, invoke, invoke, invoke, invoke
-
Constructor Details
-
ScalarPolynomial
ScalarPolynomial(BasicArray<N> coefficients)
-
-
Method Details
-
integrate
-
invoke
-
multiply
- 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
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>>
-