|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CFreeElement
The interface for elements in the free modules of complex numbers.
CFreeModule
Method Summary | |
---|---|
CFreeElement |
clone()
Returns a deep copy of this module element. |
void |
conjugate()
Conjugates this element. |
CFreeElement |
conjugated()
Returns the conjugate of this element. |
CFreeElement |
difference(ModuleElement element)
Returns the difference of this module element and element . |
CElement |
getComponent(int i)
Returns the i -th component of this free element. |
CElement |
getRingElement(int i)
Returns the i -th ring component of this free element. |
CFreeElement |
negated()
Returns the negative of this module element. |
CFreeElement |
resize(int n)
Returns this free element resized to length n . |
CFreeElement |
scaled(RingElement element)
Returns the product of this element with element . |
CFreeElement |
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 |
---|
CFreeElement conjugated()
void conjugate()
CFreeElement sum(ModuleElement element) throws DomainException
ModuleElement
element
.
sum
in interface ModuleElement
DomainException
- if element
is not in domainCFreeElement difference(ModuleElement element) throws DomainException
ModuleElement
element
.
difference
in interface ModuleElement
DomainException
- if element
is not in domainCFreeElement negated()
ModuleElement
negated
in interface ModuleElement
CFreeElement scaled(RingElement element) throws DomainException
ModuleElement
element
.
scaled
in interface ModuleElement
DomainException
- if element
is not in domainCFreeElement 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
CElement getComponent(int i)
FreeElement
i
-th component of this free element.
getComponent
in interface FreeElement
getComponent
in interface ModuleElement
CElement getRingElement(int i)
FreeElement
i
-th ring component of this free element.
getRingElement
in interface FreeElement
CFreeElement clone()
ModuleElement
clone
in interface ModuleElement
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |