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] with Serializable

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. 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

  2. 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

  3. def +(s: StrNum): StrNum

    Add two string numbers.

    Add two string numbers.

    s

    add string s to this

  4. def -(s: StrNum): StrNum

    Subtract two string numbers.

    Subtract two string numbers.

    s

    subtract s from this

  5. 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

  6. def <(that: StrNum): Boolean
    Definition Classes
    Ordered
  7. def <=(that: StrNum): Boolean
    Definition Classes
    Ordered
  8. 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

  9. def >(that: StrNum): Boolean
    Definition Classes
    Ordered
  10. def >=(that: StrNum): Boolean
    Definition Classes
    Ordered
  11. def abs(x: StrNum): StrNum
    Definition Classes
    Numeric
  12. 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
  13. 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
  14. def compareTo(that: StrNum): Int
    Definition Classes
    Ordered → Comparable
  15. 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
  16. def equiv(x: StrNum, y: StrNum): Boolean
    Definition Classes
    Ordering → PartialOrdering → Equiv
  17. def fromDouble(d: Double): StrNum

    Create a string number from a Double.

    Create a string number from a Double.

    d

    the source double

  18. 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
  19. def getBytes(): Array[Byte]

    Get the bytes for 'this' string number.

  20. def gt(x: StrNum, y: StrNum): Boolean
    Definition Classes
    Ordering → PartialOrdering
  21. def gteq(x: StrNum, y: StrNum): Boolean
    Definition Classes
    Ordering → PartialOrdering
  22. 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
  23. def in(set: Set[StrNum]): Boolean

    Determine whether 'this' is in the given set.

  24. def in(lim: (StrNum, StrNum)): Boolean

    Determine whether 'this' is within the given bounds

    Determine whether 'this' is within the given bounds

    lim

    the given (lower, upper) bounds

  25. def lt(x: StrNum, y: StrNum): Boolean
    Definition Classes
    Ordering → PartialOrdering
  26. def lteq(x: StrNum, y: StrNum): Boolean
    Definition Classes
    Ordering → PartialOrdering
  27. 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

  28. def max(x: StrNum, y: StrNum): StrNum
    Definition Classes
    Ordering
  29. 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

  30. def min(x: StrNum, y: StrNum): StrNum
    Definition Classes
    Ordering
  31. def minus(s: StrNum, t: StrNum): StrNum
    Definition Classes
    StrNum → Numeric
  32. implicit def mkNumericOps(lhs: StrNum): Ops
    Definition Classes
    Numeric
  33. implicit def mkOrderingOps(lhs: StrNum): StrNum.Ops
    Definition Classes
    Ordering
  34. def negate(s: StrNum): StrNum
    Definition Classes
    StrNum → Numeric
  35. def not_in(set: Set[StrNum]): Boolean

    Determine whether 'this' is not in the given set.

  36. def not_in(lim: (StrNum, StrNum)): Boolean

    Determine whether 'this' is not within the given bounds

    Determine whether 'this' is not within the given bounds

    lim

    the given (lower, upper) bounds

  37. def on[U](f: (U) ⇒ StrNum): Ordering[U]
    Definition Classes
    Ordering
  38. def one: StrNum
    Definition Classes
    Numeric
  39. def plus(s: StrNum, t: StrNum): StrNum
    Definition Classes
    StrNum → Numeric
  40. def pow(s: StrNum, r: StrNum): StrNum
  41. def reverse: Ordering[StrNum]
    Definition Classes
    Ordering → PartialOrdering
  42. def reversed(): Comparator[StrNum]
    Definition Classes
    Comparator
  43. def signum(x: StrNum): Int
    Definition Classes
    Numeric
  44. val ss: String
  45. def thenComparing[U <: Comparable[_ >: U]](arg0: Function[_ >: StrNum, _ <: U]): Comparator[StrNum]
    Definition Classes
    Comparator
  46. def thenComparing[U](arg0: Function[_ >: StrNum, _ <: U], arg1: Comparator[_ >: U]): Comparator[StrNum]
    Definition Classes
    Comparator
  47. def thenComparing(arg0: Comparator[_ >: StrNum]): Comparator[StrNum]
    Definition Classes
    Comparator
  48. def thenComparingDouble(arg0: ToDoubleFunction[_ >: StrNum]): Comparator[StrNum]
    Definition Classes
    Comparator
  49. def thenComparingInt(arg0: ToIntFunction[_ >: StrNum]): Comparator[StrNum]
    Definition Classes
    Comparator
  50. def thenComparingLong(arg0: ToLongFunction[_ >: StrNum]): Comparator[StrNum]
    Definition Classes
    Comparator
  51. def times(s: StrNum, t: StrNum): StrNum
    Definition Classes
    StrNum → Numeric
  52. def toComplex: Complex
  53. 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

  54. def toDouble: Double
  55. 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
  56. def toFloat: Float
  57. 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
  58. def toInt: Int
  59. 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
  60. def toLong: Long
  61. 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
  62. def toRational: Rational
  63. 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

  64. def toReal: Real
  65. 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

  66. def toStrNum: StrNum

    Convert 'this' string number to a StrNum.

  67. def toString(): String

    Convert 'this' string number to a String.

    Convert 'this' string number to a String.

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

    Compute the unary minus (-).

  70. def zero: StrNum
    Definition Classes
    Numeric
  71. def ~^(r: StrNum): StrNum

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

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

    r

    the power/exponent

  72. def (r: StrNum): StrNum
  73. def (set: Set[StrNum]): Boolean
  74. def (lim: (StrNum, StrNum)): Boolean
  75. def (set: Set[StrNum]): Boolean
  76. def (lim: (StrNum, StrNum)): Boolean
  77. def (s: StrNum): Boolean
  78. def (s: StrNum): Boolean
  79. 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

  80. 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

  81. 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