Class AbstractModule<V,S,R extends Ring<S>>
java.lang.Object
dk.jonaslindstrom.ruffini.common.structures.AbstractModule<V,S,R>
- All Implemented Interfaces:
AdditiveGroup<V>
,CommutativeMonoid<V>
,Module<V,
,S, R> Set<V>
- Direct Known Subclasses:
AbstractVectorSpace
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the result of a+b.boolean
Returnstrue
if and only if a = b as elements of this set.Get the scalar ring.Return -a.Returns a human-readable string representation of an element in this set.zero()
Return the zero element.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dk.jonaslindstrom.ruffini.common.abstractions.AdditiveGroup
doubling, isZero, scale, scale, subtract, sum
Methods inherited from interface dk.jonaslindstrom.ruffini.common.abstractions.CommutativeMonoid
add, add
-
Field Details
-
vectors
-
ring
-
-
Constructor Details
-
AbstractModule
-
-
Method Details
-
getScalars
Description copied from interface:Module
Get the scalar ring. -
negate
Description copied from interface:AdditiveGroup
Return -a.- Specified by:
negate
in interfaceAdditiveGroup<V>
-
add
Description copied from interface:CommutativeMonoid
Return the result of a+b.- Specified by:
add
in interfaceCommutativeMonoid<V>
-
zero
Description copied from interface:CommutativeMonoid
Return the zero element.- Specified by:
zero
in interfaceCommutativeMonoid<V>
-
toString
Description copied from interface:Set
Returns a human-readable string representation of an element in this set. -
equals
Description copied from interface:Set
Returnstrue
if and only if a = b as elements of this set.
-