trait ShortIsEuclideanRing extends EuclideanRing[Short]
- Alphabetic
- By Inheritance
- ShortIsEuclideanRing
- EuclideanRing
- CRing
- MultiplicativeCMonoid
- MultiplicativeCSemigroup
- Ring
- Rng
- AdditiveAbGroup
- AdditiveCMonoid
- AdditiveCSemigroup
- AdditiveGroup
- Rig
- MultiplicativeMonoid
- Semiring
- MultiplicativeSemigroup
- AdditiveMonoid
- AdditiveSemigroup
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
additive: AbGroup[Short]
- Definition Classes
- AdditiveAbGroup → AdditiveCMonoid → AdditiveCSemigroup → AdditiveGroup → AdditiveMonoid → AdditiveSemigroup
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
euclid(a: Short, b: Short)(implicit eq: Eq[Short]): Short
- Attributes
- protected[this]
- Definition Classes
- EuclideanRing
- Annotations
- @tailrec()
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fromInt(n: Int): Short
Defined to be equivalent to
additive.sumn(one, n).Defined to be equivalent to
additive.sumn(one, n). That is,nrepeated summations of this ring'sone, or-oneifnis negative.- Definition Classes
- ShortIsEuclideanRing → Ring
-
def
gcd(a: Short, b: Short): Short
- Definition Classes
- ShortIsEuclideanRing → EuclideanRing
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isOne(a: Short)(implicit ev: Eq[Short]): Boolean
- Definition Classes
- MultiplicativeMonoid
-
def
isZero(a: Short)(implicit ev: Eq[Short]): Boolean
Tests if
ais zero.Tests if
ais zero.- Definition Classes
- AdditiveMonoid
-
def
lcm(a: Short, b: Short): Short
- Definition Classes
- EuclideanRing
-
def
minus(a: Short, b: Short): Short
- Definition Classes
- ShortIsEuclideanRing → AdditiveGroup
-
def
mod(a: Short, b: Short): Short
- Definition Classes
- ShortIsEuclideanRing → EuclideanRing
-
def
multiplicative: CMonoid[Short]
- Definition Classes
- MultiplicativeCMonoid → MultiplicativeCSemigroup → MultiplicativeMonoid → MultiplicativeSemigroup
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
negate(a: Short): Short
- Definition Classes
- ShortIsEuclideanRing → AdditiveGroup
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
one: Short
- Definition Classes
- ShortIsEuclideanRing → MultiplicativeMonoid
-
def
plus(a: Short, b: Short): Short
- Definition Classes
- ShortIsEuclideanRing → AdditiveSemigroup
-
def
pow(a: Short, b: Int): Short
This is similar to
Semigroup#pow, except thata pow 0is defined to be the multiplicative identity.This is similar to
Semigroup#pow, except thata pow 0is defined to be the multiplicative identity.- Definition Classes
- ShortIsEuclideanRing → Rig → Semiring
-
def
prod(as: TraversableOnce[Short]): Short
Given a sequence of
as, sum them using the monoid and return the total.Given a sequence of
as, sum them using the monoid and return the total.- Definition Classes
- MultiplicativeMonoid
-
def
prodOption(as: TraversableOnce[Short]): Option[Short]
Given a sequence of
as, sum them using the semigroup and return the total.Given a sequence of
as, sum them using the semigroup and return the total.If the sequence is empty, returns None. Otherwise, returns Some(total).
- Definition Classes
- MultiplicativeSemigroup
-
def
prodn(a: Short, n: Int): Short
Return
amultiplied with itselfntimes.Return
amultiplied with itselfntimes.- Definition Classes
- MultiplicativeMonoid → MultiplicativeSemigroup
-
def
prodnAboveOne(a: Short, n: Int): Short
- Attributes
- protected
- Definition Classes
- MultiplicativeSemigroup
-
def
quot(a: Short, b: Short): Short
- Definition Classes
- ShortIsEuclideanRing → EuclideanRing
-
def
quotmod(a: Short, b: Short): (Short, Short)
- Definition Classes
- EuclideanRing
-
def
sum(as: TraversableOnce[Short]): Short
Given a sequence of
as, sum them using the monoid and return the total.Given a sequence of
as, sum them using the monoid and return the total.- Definition Classes
- AdditiveMonoid
-
def
sumOption(as: TraversableOnce[Short]): Option[Short]
Given a sequence of
as, sum them using the semigroup and return the total.Given a sequence of
as, sum them using the semigroup and return the total.If the sequence is empty, returns None. Otherwise, returns Some(total).
- Definition Classes
- AdditiveSemigroup
-
def
sumn(a: Short, n: Int): Short
Return
aadded with itselfntimes.Return
aadded with itselfntimes.- Definition Classes
- AdditiveGroup → AdditiveMonoid → AdditiveSemigroup
-
def
sumnAboveOne(a: Short, n: Int): Short
- Attributes
- protected
- Definition Classes
- AdditiveSemigroup
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
times(a: Short, b: Short): Short
- Definition Classes
- ShortIsEuclideanRing → MultiplicativeSemigroup
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
zero: Short
- Definition Classes
- ShortIsEuclideanRing → AdditiveMonoid