final case class Word(ls: Vector[Int]) extends AnyVal with Product with Serializable
A word in a free group.
- ls
letters of the words represented as integers; 1 represents a, -1 represents
a^{-1}
- Alphabetic
- By Inheritance
- Word
- Serializable
- Product
- Equals
- AnyVal
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Value Members
- def !: Word
inverse
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- def *(that: Word): Word
multiply and reduce
- def +(other: String): String
- def ++(that: Word): Word
- def +:(let: Int): Word
letter prepended to word, not reduced
- def ->[B](y: B): (Word, B)
- def :+(let: Int): Word
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- def ^(that: Word): Word
conjugate
- def ^(n: Int): Word
raise to nth power.
- def ^^(k: Int): Word
conjugate by a generator (or its inverse).
conjugate by a generator (or its inverse).
- k
index of generator, starting at 1.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def conj(that: Word): Word
conjugate
- def conjGen(k: Int): Word
conjugate by a generator (or its inverse)
- def ensuring(cond: (Word) => Boolean, msg: => Any): Word
- def ensuring(cond: (Word) => Boolean): Word
- def ensuring(cond: Boolean, msg: => Any): Word
- def ensuring(cond: Boolean): Word
- def formatted(fmtstr: String): String
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def inv: Word
inverse
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isReduced: Boolean
- val ls: Vector[Int]
- def maxgen: Int
largest generator in the free group.
- def pow: (Int) => Word
returns this to kth power.
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def reduce: Word
returns reduced form of a word
- def rmvtop(rank: Int): Word
remove generators of rank and above.
- def toPlainString: String
string representation
- def toString(): String
- Definition Classes
- Word → Any
- def toUnicode: String
unicode representation.
Deprecated Value Members
- def →[B](y: B): (Word, B)
- Implicit
- This member is added by an implicit conversion from Word toArrowAssoc[Word] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.