|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rubato.math.module.ProperFreeElement
org.rubato.math.module.PolynomialProperFreeElement
public final class PolynomialProperFreeElement
Elements in a free module of polynomials.
PolynomialProperFreeModule
,
Serialized FormMethod Summary | |
---|---|
void |
add(ModuleElement element)
Adds element to this module element. |
void |
add(PolynomialProperFreeElement element)
|
ModuleElement |
cast(Module module)
Tries to cast this element to an element in the given module. |
PolynomialProperFreeElement |
clone()
Returns a deep copy of this module element. |
int |
compareTo(ModuleElement object)
Compares this module element with object . |
PolynomialProperFreeElement |
difference(ModuleElement element)
Returns the difference of this module element and element . |
PolynomialProperFreeElement |
difference(PolynomialProperFreeElement element)
|
boolean |
equals(java.lang.Object object)
Returns true iff this element is equal to object . |
double[] |
fold(ModuleElement[] elements)
Fold elements assuming they are of this same type. |
ModuleElement |
fromXML(XMLReader reader,
org.w3c.dom.Element element)
Reads XML representation from reader starting with element . |
Ring |
getCoefficientRing()
Returns the ring of the coefficients of the polynomial. |
PolynomialElement |
getComponent(int i)
Returns the i -th component of this free element. |
java.lang.String |
getElementTypeName()
Returns the value of the type attribute for this class. |
java.lang.String |
getIndeterminate()
Returns the indeterminate of the polynomial. |
int |
getLength()
Returns the length of this free element. |
PolynomialFreeModule |
getModule()
Returns the module that this module element is an element of. |
PolynomialElement |
getRingElement(int i)
Returns the i -th ring component of this free element. |
PolynomialElement[] |
getValue()
|
PolynomialElement |
getValue(int i)
|
static XMLInputOutput<ModuleElement> |
getXMLInputOutput()
|
int |
hashCode()
Returns the hash code for this module element. |
boolean |
isZero()
Returns true iff this element is zero. |
static PolynomialFreeElement |
make(PolynomialRing ring,
PolynomialElement[] v)
|
void |
multiplyCW(ModuleElement element)
Multiply this module element componentwise with element . |
void |
multiplyCW(PolynomialProperFreeElement element)
|
void |
negate()
Negate this module element. |
PolynomialProperFreeElement |
negated()
Returns the negative of this module element. |
PolynomialProperFreeElement |
productCW(ModuleElement element)
Returns the componentwise product of this module element and element . |
PolynomialProperFreeElement |
productCW(PolynomialProperFreeElement element)
|
PolynomialFreeElement |
resize(int n)
Returns this free element resized to length n . |
void |
scale(RingElement element)
Multiplies this element with element . |
PolynomialProperFreeElement |
scaled(RingElement element)
Returns the product of this element with element . |
java.lang.String |
stringRep(boolean... parens)
Returns a string representation of this module element. |
void |
subtract(ModuleElement element)
Subtracts element from this module element. |
void |
subtract(PolynomialProperFreeElement element)
|
PolynomialProperFreeElement |
sum(ModuleElement element)
Returns the sum of this module element and element . |
PolynomialProperFreeElement |
sum(PolynomialProperFreeElement element)
|
java.lang.String |
toString()
Returns a human readable string representation of this module element. |
void |
toXML(XMLWriter writer)
Outputs XML representation to writer . |
Methods inherited from class org.rubato.math.module.ProperFreeElement |
---|
iterator |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.rubato.math.module.FreeElement |
---|
iterator |
Method Detail |
---|
public static PolynomialFreeElement make(PolynomialRing ring, PolynomialElement[] v)
public boolean isZero()
ModuleElement
isZero
in interface ModuleElement
public PolynomialProperFreeElement sum(ModuleElement element) throws DomainException
ModuleElement
element
.
sum
in interface ModuleElement
DomainException
- if element
is not in domainpublic PolynomialProperFreeElement sum(PolynomialProperFreeElement element) throws DomainException
DomainException
public void add(ModuleElement element) throws DomainException
ModuleElement
element
to this module element.
This is a destructive operation.
add
in interface ModuleElement
DomainException
- if element
is not in domainpublic void add(PolynomialProperFreeElement element) throws DomainException
DomainException
public PolynomialProperFreeElement difference(ModuleElement element) throws DomainException
ModuleElement
element
.
difference
in interface ModuleElement
DomainException
- if element
is not in domainpublic PolynomialProperFreeElement difference(PolynomialProperFreeElement element) throws DomainException
DomainException
public void subtract(ModuleElement element) throws DomainException
ModuleElement
element
from this module element.
This is a destructive operation.
subtract
in interface ModuleElement
DomainException
- if element
is not in domainpublic void subtract(PolynomialProperFreeElement element) throws DomainException
DomainException
public PolynomialProperFreeElement productCW(ModuleElement element) throws DomainException
FreeElement
element
.
productCW
in interface FreeElement
DomainException
- if element
is not in domainpublic PolynomialProperFreeElement productCW(PolynomialProperFreeElement element) throws DomainException
DomainException
public void multiplyCW(ModuleElement element) throws DomainException
FreeElement
element
.
This is a destructive operation.
multiplyCW
in interface FreeElement
DomainException
- if element
is not in domainpublic void multiplyCW(PolynomialProperFreeElement element) throws DomainException
DomainException
public PolynomialProperFreeElement negated()
ModuleElement
negated
in interface ModuleElement
public void negate()
ModuleElement
negate
in interface ModuleElement
public PolynomialProperFreeElement scaled(RingElement element) throws DomainException
ModuleElement
element
.
scaled
in interface ModuleElement
DomainException
- if element
is not in domainpublic void scale(RingElement element) throws DomainException
ModuleElement
element
.
This is a destructive operation.
scale
in interface ModuleElement
DomainException
- if element
is not in domainpublic PolynomialElement getComponent(int i)
FreeElement
i
-th component of this free element.
getComponent
in interface FreeElement
getComponent
in interface ModuleElement
public PolynomialElement getRingElement(int i)
FreeElement
i
-th ring component of this free element.
getRingElement
in interface FreeElement
public int getLength()
FreeElement
getLength
in interface FreeElement
getLength
in interface ModuleElement
public PolynomialFreeModule getModule()
ModuleElement
getModule
in interface ModuleElement
public PolynomialElement[] getValue()
public PolynomialElement getValue(int i)
public Ring getCoefficientRing()
PolynomialFreeElement
getCoefficientRing
in interface PolynomialFreeElement
public java.lang.String getIndeterminate()
PolynomialFreeElement
getIndeterminate
in interface PolynomialFreeElement
public PolynomialFreeElement resize(int n)
FreeElement
n
.
If the new length n
is greater than the old length,
the new values are filled with the zero of the underlying ring.
If the new length n
is less than the old length,
the vector of values is simply truncated.
resize
in interface FreeElement
public boolean equals(java.lang.Object object)
ModuleElement
object
.
equals
in interface ModuleElement
equals
in class java.lang.Object
public int compareTo(ModuleElement object)
ModuleElement
object
.
compareTo
in interface java.lang.Comparable<ModuleElement>
compareTo
in interface ModuleElement
compareTo
in class ProperFreeElement
public ModuleElement cast(Module module)
ModuleElement
cast
in interface ModuleElement
public PolynomialProperFreeElement clone()
ModuleElement
clone
in interface ModuleElement
clone
in class ProperFreeElement
public java.lang.String stringRep(boolean... parens)
ModuleElement
stringRep
in interface ModuleElement
public java.lang.String toString()
ModuleElement
toString
in interface ModuleElement
toString
in class java.lang.Object
public double[] fold(ModuleElement[] elements)
ModuleElement
elements
assuming they are of this same type.
fold
in interface ModuleElement
public void toXML(XMLWriter writer)
XMLInputOutput
writer
.
toXML
in interface XMLInputOutput<ModuleElement>
public ModuleElement fromXML(XMLReader reader, org.w3c.dom.Element element)
XMLInputOutput
reader
starting with element
.
fromXML
in interface XMLInputOutput<ModuleElement>
public static XMLInputOutput<ModuleElement> getXMLInputOutput()
public java.lang.String getElementTypeName()
XMLInputOutput
getElementTypeName
in interface XMLInputOutput<ModuleElement>
public int hashCode()
ModuleElement
hashCode
in interface ModuleElement
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |