given_NormedAdditiveMonoid_String_Int

com.alecdorrington.scalgebra.evidence.collection.StringIsNormedAdditiveMonoid.given_NormedAdditiveMonoid_String_Int

Attributes

Graph
Supertypes
trait NormedAdditiveMonoid[String, Int]
trait NormedAdditiveIdentity[String, Int]
trait NormedAdditiveSemigroup[String, Int]
trait NormedAdditiveMagma[String, Int]
trait Normed[String, Int]
trait AdditiveMonoid[String]
trait AdditiveIdentity[String]
trait AdditiveSemigroup[String]
trait AdditiveMagma[String]
trait Algebra[String]
class Object
trait Matchable
class Any
Show all
Self type

Members list

Value members

Concrete methods

override def zero: String

The unique additive identity in this algebra. Typically given by values such as 0, 0.0F, or Seq.empty.

The unique additive identity in this algebra. Typically given by values such as 0, 0.0F, or Seq.empty.

Attributes

Definition Classes

Extensions

Extensions

extension (x: String)
override def add(y: String): String

Computes the sum of two values x and y, i.e. x + y.

Computes the sum of two values x and y, i.e. x + y.

Attributes

Definition Classes
override def length: Int

Computes the norm of a value x, i.e. ‖x‖.

Computes the norm of a value x, i.e. ‖x‖.

Attributes

Definition Classes

Inherited extensions

extension (x: String)
infix inline def +(y: String): String

An alias for add.

An alias for add.

Attributes

Inherited from:
AdditiveMagma
extension (x: String)
infix inline def *:(n: Int): String

An alias for scale, with the factor on the left.

An alias for scale, with the factor on the left.

Attributes

Inherited from:
AdditiveSemigroup
infix inline def :*(n: Int): String

An alias for scale, with the factor on the right.

An alias for scale, with the factor on the right.

Attributes

Inherited from:
AdditiveSemigroup
extension (x: String)
inline def isZero: Boolean

Attributes

Returns

true if and only if x equals zero.

Inherited from:
AdditiveIdentity
inline def nonZero: Boolean

Attributes

Returns

true if and only if x doesn't equal zero.

Inherited from:
AdditiveIdentity
extension (x: String)
override def scale(n: Int): String

Computes x multiplied by n, for any non-negative integer n.

Computes x multiplied by n, for any non-negative integer n.

Attributes

Throws
IllegalArgumentException

if n < 0.

Definition Classes
Inherited from:
AdditiveMonoid
extension (xs: Iterable[String])
inline def sumOrZero: String

Computes the sum of all values in xs, i.e. xs₁ + xs₂ + …, or else zero if xs is empty.

Computes the sum of all values in xs, i.e. xs₁ + xs₂ + …, or else zero if xs is empty.

Attributes

Inherited from:
AdditiveMonoid
extension (xs: Iterable[String])
inline def sumFrom(x: String): String

Computes the sum of x and all values in xs, i.e. x + xs₁ + xs₂ + ….

Computes the sum of x and all values in xs, i.e. x + xs₁ + xs₂ + ….

Attributes

Inherited from:
AdditiveSemigroup
inline def sumOption: Option[String]

Computes the sum of all values in xs, i.e. xs₁ + xs₂ + …, or else None if xs is empty.

Computes the sum of all values in xs, i.e. xs₁ + xs₂ + …, or else None if xs is empty.

Attributes

Inherited from:
AdditiveSemigroup
inline def sumOrElse[Y >: String](default: Y): Y

Computes the sum of all values in xs, i.e. xs₁ + xs₂ + …, or else default if xs is empty.

Computes the sum of all values in xs, i.e. xs₁ + xs₂ + …, or else default if xs is empty.

Attributes

Inherited from:
AdditiveSemigroup