|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QFreeElement
The interface for elements in a free module of rationals.
QFreeModule
Method Summary | |
---|---|
QFreeElement |
clone()
Returns a deep copy of this module element. |
QFreeElement |
difference(ModuleElement element)
Returns the difference of this module element and element . |
QElement |
getComponent(int i)
Returns the i -th component of this free element. |
QElement |
getRingElement(int i)
Returns the i -th ring component of this free element. |
QFreeElement |
negated()
Returns the negative of this module element. |
QFreeElement |
resize(int n)
Returns this free element resized to length n . |
QFreeElement |
scaled(RingElement element)
Returns the product of this element with element . |
QFreeElement |
sum(ModuleElement element)
Returns the sum of this module element and element . |
Methods inherited from interface org.rubato.math.module.FreeElement |
---|
getLength, iterator, multiplyCW, productCW |
Methods inherited from interface org.rubato.math.module.ModuleElement |
---|
add, cast, compareTo, equals, fold, getModule, hashCode, isZero, negate, scale, stringRep, subtract, toString |
Methods inherited from interface org.rubato.xml.XMLInputOutput |
---|
fromXML, getElementTypeName, toXML |
Method Detail |
---|
QFreeElement sum(ModuleElement element) throws DomainException
ModuleElement
element
.
sum
in interface ModuleElement
DomainException
- if element
is not in domainQFreeElement difference(ModuleElement element) throws DomainException
ModuleElement
element
.
difference
in interface ModuleElement
DomainException
- if element
is not in domainQFreeElement negated()
ModuleElement
negated
in interface ModuleElement
QFreeElement scaled(RingElement element) throws DomainException
ModuleElement
element
.
scaled
in interface ModuleElement
DomainException
- if element
is not in domainQFreeElement 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
QElement getComponent(int i)
FreeElement
i
-th component of this free element.
getComponent
in interface FreeElement
getComponent
in interface ModuleElement
QElement getRingElement(int i)
FreeElement
i
-th ring component of this free element.
getRingElement
in interface FreeElement
QFreeElement clone()
ModuleElement
clone
in interface ModuleElement
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |