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