Packages

  • package root
    Definition Classes
    root
  • package scalation

    The scalation package specifies system-wide constants for directory paths.

    The scalation package specifies system-wide constants for directory paths. Sub-packages may wish to define 'BASE-DIR = DATA_DIR + ⁄ + <package>' in their own 'package.scala' files. For maintainability, directory paths should only be specified in 'package.scala' files.

    Definition Classes
    root
  • package math

    The math package contains classes, traits and objects for common mathematical operations.

    The math package contains classes, traits and objects for common mathematical operations. Its package object defines exponentiation, logarithmic, trigonometric, etc. operators and functions.

    Definition Classes
    scalation
  • object StrO

    The StrO object is used to represent and operate on string numbers.

    The StrO object is used to represent and operate on string numbers. It contains an implicit class definition for StrNum, which extends strings with Numeric operations, it it can be used in VectorS. The semantics of StrNum operators are similar those in Pike.

    Definition Classes
    math
    See also

    http://docs.roxen.com/pike/7.0/tutorial/strings/operators.xml

  • StrNum

implicit class StrNum extends Numeric[StrNum] with Ordered[StrNum]

The StrNum implicit class is used to represent and operate on string numbers. Internally, a string number is represented as String. The semantics of StrNum operators are similar those in Pike.

See also

http://docs.roxen.com/pike/7.0/tutorial/strings/operators.xml ---------------------------------------------------------------------

Linear Supertypes
Ordered[StrNum], Comparable[StrNum], Numeric[StrNum], Ordering[StrNum], PartialOrdering[StrNum], Equiv[StrNum], Serializable, Serializable, Comparator[StrNum], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StrNum
  2. Ordered
  3. Comparable
  4. Numeric
  5. Ordering
  6. PartialOrdering
  7. Equiv
  8. Serializable
  9. Serializable
  10. Comparator
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StrNum(ss: String)

    ss

    the underlying string

Type Members

  1. class Ops extends AnyRef
    Definition Classes
    Numeric

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. def !=~(s: StrNum): Boolean

    Return whether two string numbers not are nearly equal.

    Return whether two string numbers not are nearly equal.

    s

    compare this with s

  3. final def ##(): Int
    Definition Classes
    AnyRef → Any
  4. def *(s: StrNum): StrNum

    Multiply two string numbers, by replacing 'SP' by 's'.

    Multiply two string numbers, by replacing 'SP' by 's'.

    s

    multiply this times s

  5. def +(s: StrNum): StrNum

    Add two string numbers.

    Add two string numbers.

    s

    add string s to this

  6. def -(s: StrNum): StrNum

    Subtract two string numbers.

    Subtract two string numbers.

    s

    subtract s from this

  7. def /(s: StrNum): StrNum

    Divide two string numbers, by replacing 's' by 'SP.

    Divide two string numbers, by replacing 's' by 'SP.

    s

    divide this by s

  8. def <(that: StrNum): Boolean
    Definition Classes
    Ordered
  9. def <=(that: StrNum): Boolean
    Definition Classes
    Ordered
  10. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def =~(s: StrNum): Boolean

    Return whether two string numbers are nearly equal.

    Return whether two string numbers are nearly equal.

    s

    compare this with s

  12. def >(that: StrNum): Boolean
    Definition Classes
    Ordered
  13. def >=(that: StrNum): Boolean
    Definition Classes
    Ordered
  14. def abs(x: StrNum): StrNum
    Definition Classes
    Numeric
  15. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  16. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. def compare(s: StrNum, t: StrNum): Int

    Compare 'this' string number with that string number 't'.

    Compare 'this' string number with that string number 't'.

    t

    that string number

    Definition Classes
    StrNum → Ordering → Comparator
  18. def compare(s: StrNum): Int

    Compare two string numbers (negative for <, zero for ==, positive for >).

    Compare two string numbers (negative for <, zero for ==, positive for >).

    s

    the first string number to compare

    Definition Classes
    StrNum → Ordered
  19. def compareTo(that: StrNum): Int
    Definition Classes
    Ordered → Comparable
  20. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. def equals(s: Any): Boolean

    Override equals to determine whether 'this' string number equals string 's'.

    Override equals to determine whether 'this' string number equals string 's'.

    s

    the string number to compare with this

    Definition Classes
    StrNum → Comparator → AnyRef → Any
  22. def equiv(x: StrNum, y: StrNum): Boolean
    Definition Classes
    Ordering → PartialOrdering → Equiv
  23. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. def fromDouble(d: Double): StrNum

    Create a string number from a Double.

    Create a string number from a Double.

    d

    the source double

  25. def fromInt(n: Int): StrNum

    Create a string number from an Int.

    Create a string number from an Int.

    n

    the source integer

    Definition Classes
    StrNum → Numeric
  26. def getBytes(): Array[Byte]

    Get the bytes for 'this' string number.

  27. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  28. def gt(x: StrNum, y: StrNum): Boolean
    Definition Classes
    Ordering → PartialOrdering
  29. def gteq(x: StrNum, y: StrNum): Boolean
    Definition Classes
    Ordering → PartialOrdering
  30. def hashCode(): Int

    Must also override hashCode to be be compatible with equals.

    Must also override hashCode to be be compatible with equals.

    Definition Classes
    StrNum → AnyRef → Any
  31. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  32. def lt(x: StrNum, y: StrNum): Boolean
    Definition Classes
    Ordering → PartialOrdering
  33. def lteq(x: StrNum, y: StrNum): Boolean
    Definition Classes
    Ordering → PartialOrdering
  34. def max(s: StrNum): StrNum

    Return the maximum of 'this' and 's' string numbers.

    Return the maximum of 'this' and 's' string numbers.

    s

    that string number to compare with this

  35. def max(x: StrNum, y: StrNum): StrNum
    Definition Classes
    Ordering
  36. def min(s: StrNum): StrNum

    Return the minimum of 'this' and 's' string numbers.

    Return the minimum of 'this' and 's' string numbers.

    s

    that string number to compare with this

  37. def min(x: StrNum, y: StrNum): StrNum
    Definition Classes
    Ordering
  38. def minus(s: StrNum, t: StrNum): StrNum
    Definition Classes
    StrNum → Numeric
  39. implicit def mkNumericOps(lhs: StrNum): Ops
    Definition Classes
    Numeric
  40. implicit def mkOrderingOps(lhs: StrNum): StrNum.Ops
    Definition Classes
    Ordering
  41. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  42. def negate(s: StrNum): StrNum
    Definition Classes
    StrNum → Numeric
  43. final def notify(): Unit
    Definition Classes
    AnyRef
  44. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  45. def on[U](f: (U) ⇒ StrNum): Ordering[U]
    Definition Classes
    Ordering
  46. def one: StrNum
    Definition Classes
    Numeric
  47. def plus(s: StrNum, t: StrNum): StrNum
    Definition Classes
    StrNum → Numeric
  48. def pow(s: StrNum, r: StrNum): StrNum
  49. def reverse: Ordering[StrNum]
    Definition Classes
    Ordering → PartialOrdering
  50. def reversed(): Comparator[StrNum]
    Definition Classes
    Comparator
  51. def signum(x: StrNum): Int
    Definition Classes
    Numeric
  52. val ss: String
  53. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  54. def thenComparing[U <: Comparable[_ >: U]](arg0: Function[_ >: StrNum, _ <: U]): Comparator[StrNum]
    Definition Classes
    Comparator
  55. def thenComparing[U](arg0: Function[_ >: StrNum, _ <: U], arg1: Comparator[_ >: U]): Comparator[StrNum]
    Definition Classes
    Comparator
  56. def thenComparing(arg0: Comparator[_ >: StrNum]): Comparator[StrNum]
    Definition Classes
    Comparator
  57. def thenComparingDouble(arg0: ToDoubleFunction[_ >: StrNum]): Comparator[StrNum]
    Definition Classes
    Comparator
  58. def thenComparingInt(arg0: ToIntFunction[_ >: StrNum]): Comparator[StrNum]
    Definition Classes
    Comparator
  59. def thenComparingLong(arg0: ToLongFunction[_ >: StrNum]): Comparator[StrNum]
    Definition Classes
    Comparator
  60. def times(s: StrNum, t: StrNum): StrNum
    Definition Classes
    StrNum → Numeric
  61. def toComplex: Complex
  62. def toComplex(s: StrNum): Complex

    Convert 'this' string number to a Complex.

    Convert 'this' string number to a Complex.

    s

    that string number to convert

  63. def toDouble: Double
  64. def toDouble(s: StrNum): Double

    Convert 'this' string number to a Double.

    Convert 'this' string number to a Double.

    s

    that string number to convert

    Definition Classes
    StrNum → Numeric
  65. def toFloat: Float
  66. def toFloat(s: StrNum): Float

    Convert 'this' string number to a Float.

    Convert 'this' string number to a Float.

    s

    that string number to convert

    Definition Classes
    StrNum → Numeric
  67. def toInt: Int
  68. def toInt(s: StrNum): Int

    Convert 'this' string number to an Int.

    Convert 'this' string number to an Int.

    s

    that string number to convert

    Definition Classes
    StrNum → Numeric
  69. def toLong: Long
  70. def toLong(s: StrNum): Long

    Convert 'this' string number to a Long.

    Convert 'this' string number to a Long.

    s

    that string number to convert

    Definition Classes
    StrNum → Numeric
  71. def toRational: Rational
  72. def toRational(s: StrNum): Rational

    Convert 'this' string number to a Rational.

    Convert 'this' string number to a Rational.

    s

    that string number to convert

  73. def toReal: Real
  74. def toReal(s: StrNum): Real

    Convert 'this' string number to a Real.

    Convert 'this' string number to a Real.

    s

    that string number to convert

  75. def toStrNum: StrNum

    Convert 'this' string number to a StrNum.

  76. def toString(): String

    Convert 'this' string number to a String.

    Convert 'this' string number to a String.

    Definition Classes
    StrNum → AnyRef → Any
  77. def tryCompare(x: StrNum, y: StrNum): Some[Int]
    Definition Classes
    Ordering → PartialOrdering
  78. def unary_-(): StrNum

    Compute the unary minus (-).

  79. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  80. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  81. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  82. def zero: StrNum
    Definition Classes
    Numeric
  83. def ~^(r: StrNum): StrNum

    Raise a string to the 'r'-th power.

    Raise a string to the 'r'-th power.

    r

    the power/exponent

  84. def (t: StrNum): Boolean

    Compare 'this' string number with that string number 't' for inequality.

    Compare 'this' string number with that string number 't' for inequality.

    t

    that string number

  85. def (t: StrNum): Boolean

    Compare 'this' string number with that string number 't' for less than or equal to.

    Compare 'this' string number with that string number 't' for less than or equal to.

    t

    that string number

  86. def (t: StrNum): Boolean

    Compare 'this' string number with that string number 't' for greater than or equal to.

    Compare 'this' string number with that string number 't' for greater than or equal to.

    t

    that string number

Inherited from Ordered[StrNum]

Inherited from Comparable[StrNum]

Inherited from Numeric[StrNum]

Inherited from Ordering[StrNum]

Inherited from PartialOrdering[StrNum]

Inherited from Equiv[StrNum]

Inherited from Serializable

Inherited from Serializable

Inherited from Comparator[StrNum]

Inherited from AnyRef

Inherited from Any

Ungrouped