Packages

package util

The util package contains classes, traits and objects for basic utility functions.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. util
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class BpTreeMap [K, V] extends AbstractMap[K, V] with Map[K, V] with MapLike[K, V, BpTreeMap[K, V]] with Serializable

    The BpTreeMap class provides B+Tree maps.

    The BpTreeMap class provides B+Tree maps. B+Trees are used as multi-level index structures that provide efficient access for both point queries and range queries.

    See also

    www.scala-lang.org/api/current/#scala.collection.mutable.MapLike ------------------------------------------------------------------------------

    docs.scala-lang.org/overviews/collections/concrete-mutable-collection-classes.html

  2. class DArray [A] extends IndexedSeq[A] with GenericTraversableTemplate[A, DArray] with IndexedSeqOptimized[A, DArray[A]]

    The DArray class provides an implementation of large mutable arrays.

    The DArray class provides an implementation of large mutable arrays. It used a double array with hi 'i1' and low 'i2' indices. Index 'i1' uses the hi-order bits to determine the chunk and 'i2' to determine the offset within a chunk. ------------------------------------------------------------------------------------------- 'apply (i) => i1 = i >> bits; val i2 = i - i1' ------------------------------------------------------------------------------------------- Could be extended to use a 'Long' rather than 'Int' in apply to very large arrays. -------------------------------------------------------------------------------------------

  3. class EasyWriter extends Writer

    The EasyWriter class makes it easy to switch between writing to standard output and a (log) file.

  4. trait Error extends AnyRef

    The Error trait is used to report errors showing the class and method within which the error or flaw occurred.

    The Error trait is used to report errors showing the class and method within which the error or flaw occurred. For performance reasons, 'getClass' is commented out. Uncomment to include this information.

  5. trait Identifiable extends Error

    The Identifiable trait provides unique identification for simulation components, entities and events.

    The Identifiable trait provides unique identification for simulation components, entities and events. Includes a mandatory id and an optional name.

  6. trait Locatable extends Error

    The Locatable trait provides location information/coordinates for objects (e.g., Components).

  7. final class MM_ArrayC extends AbstractSeq[Complex] with IndexedSeq[Complex] with Serializable with Cloneable

    The MM_ArrayC class provides support for large, persistent arrays via memory mapped files.

    The MM_ArrayC class provides support for large, persistent arrays via memory mapped files. Currently, the size of a memory mapped array is limited to 2GB (2^31), since indices are signed 32-bit integers. FIX: use Long for indices and multiple files to remove 2GB limitation

    See also

    https://github.com/xerial/larray/blob/develop/README.md

  8. final class MM_ArrayD extends AbstractSeq[Double] with IndexedSeq[Double] with Serializable with Cloneable

    The MM_ArrayD class provides support for large, persistent arrays via memory mapped files.

    The MM_ArrayD class provides support for large, persistent arrays via memory mapped files. Currently, the size of a memory mapped array is limited to 2GB (2^31), since indices are signed 32-bit integers. FIX: use Long for indices and multiple files to remove 2GB limitation

    See also

    https://github.com/xerial/larray/blob/develop/README.md

  9. final class MM_ArrayI extends AbstractSeq[Int] with IndexedSeq[Int] with Serializable with Cloneable

    The MM_ArrayI class provides support for large, persistent arrays via memory mapped files.

    The MM_ArrayI class provides support for large, persistent arrays via memory mapped files. Currently, the size of a memory mapped array is limited to 2GB (2^31), since indices are signed 32-bit integers. FIX: use Long for indices and multiple files to remove 2GB limitation

    See also

    https://github.com/xerial/larray/blob/develop/README.md

  10. final class MM_ArrayL extends AbstractSeq[Long] with IndexedSeq[Long] with Serializable with Cloneable

    The MM_ArrayL class provides support for large, persistent arrays via memory mapped files.

    The MM_ArrayL class provides support for large, persistent arrays via memory mapped files. Currently, the size of a memory mapped array is limited to 2GB (2^31), since indices are signed 32-bit integers. FIX: use Long for indices and multiple files to remove 2GB limitation

    See also

    https://github.com/xerial/larray/blob/develop/README.md

  11. final class MM_ArrayQ extends AbstractSeq[Rational] with IndexedSeq[Rational] with Serializable with Cloneable

    The MM_ArrayQ class provides support for large, persistent arrays via memory mapped files.

    The MM_ArrayQ class provides support for large, persistent arrays via memory mapped files. Currently, the size of a memory mapped array is limited to 2GB (2^31), since indices are signed 32-bit integers. FIX: use Long for indices and multiple files to remove 2GB limitation

    See also

    https://github.com/xerial/larray/blob/develop/README.md

  12. final class MM_ArrayR extends AbstractSeq[Real] with IndexedSeq[Real] with Serializable with Cloneable

    The MM_ArrayR class provides support for large, persistent arrays via memory mapped files.

    The MM_ArrayR class provides support for large, persistent arrays via memory mapped files. Currently, the size of a memory mapped array is limited to 2GB (2^31), since indices are signed 32-bit integers. FIX: use Long for indices and multiple files to remove 2GB limitation

    See also

    https://github.com/xerial/larray/blob/develop/README.md

  13. final class MM_ArrayS extends AbstractSeq[StrNum] with IndexedSeq[StrNum] with Serializable with Cloneable

    The MM_ArrayS class provides support for large, persistent arrays via memory mapped files.

    The MM_ArrayS class provides support for large, persistent arrays via memory mapped files. Currently, the size of a memory mapped array is limited to 2GB (2^31), since indices are signed 32-bit integers. FIX: use Long for indices and multiple files to remove 2GB limitation

    See also

    https://github.com/xerial/larray/blob/develop/README.md

  14. class MM_SortingC extends AnyRef

    The MM_SortingC class provides direct and indirect methods to:

    The MM_SortingC class provides direct and indirect methods to:

    find 'k'-th median ('k'-th smallest element) using QuickSelect sort large arrays using QuickSort sort small arrays using SelectionSort

    Direct methods are faster, but modify the array, while indirect methods are slower, but do not modify the array. This class is specialized for Complex.

    See also

    Sorting for a generic version of this class.

  15. class MM_SortingD extends AnyRef

    The MM_SortingD class provides direct and indirect methods to:

    The MM_SortingD class provides direct and indirect methods to:

    find 'k'-th median ('k'-th smallest element) using QuickSelect sort large arrays using QuickSort sort small arrays using SelectionSort

    Direct methods are faster, but modify the array, while indirect methods are slower, but do not modify the array. This class is specialized for Double.

    See also

    Sorting for a generic version of this class.

  16. class MM_SortingI extends AnyRef

    The MM_SortingI class provides direct and indirect methods to:

    The MM_SortingI class provides direct and indirect methods to:

    find 'k'-th median ('k'-th smallest element) using QuickSelect sort large arrays using QuickSort sort small arrays using SelectionSort

    Direct methods are faster, but modify the array, while indirect methods are slower, but do not modify the array. This class is specialized for Int.

    See also

    Sorting for a generic version of this class.

  17. class MM_SortingL extends AnyRef

    The MM_SortingL class provides direct and indirect methods to:

    The MM_SortingL class provides direct and indirect methods to:

    find 'k'-th median ('k'-th smallest element) using QuickSelect sort large arrays using QuickSort sort small arrays using SelectionSort

    Direct methods are faster, but modify the array, while indirect methods are slower, but do not modify the array. This class is specialized for Long.

    See also

    Sorting for a generic version of this class.

  18. class MM_SortingQ extends AnyRef

    The MM_SortingQ class provides direct and indirect methods to:

    The MM_SortingQ class provides direct and indirect methods to:

    find 'k'-th median ('k'-th smallest element) using QuickSelect sort large arrays using QuickSort sort small arrays using SelectionSort

    Direct methods are faster, but modify the array, while indirect methods are slower, but do not modify the array. This class is specialized for Rational.

    See also

    Sorting for a generic version of this class.

  19. class MM_SortingR extends AnyRef

    The MM_SortingR class provides direct and indirect methods to:

    The MM_SortingR class provides direct and indirect methods to:

    find 'k'-th median ('k'-th smallest element) using QuickSelect sort large arrays using QuickSort sort small arrays using SelectionSort

    Direct methods are faster, but modify the array, while indirect methods are slower, but do not modify the array. This class is specialized for Real.

    See also

    Sorting for a generic version of this class.

  20. class MM_SortingS extends AnyRef

    The MM_SortingS class provides direct and indirect methods to:

    The MM_SortingS class provides direct and indirect methods to:

    find 'k'-th median ('k'-th smallest element) using QuickSelect sort large arrays using QuickSort sort small arrays using SelectionSort

    Direct methods are faster, but modify the array, while indirect methods are slower, but do not modify the array. This class is specialized for StrNum.

    See also

    Sorting for a generic version of this class.

  21. class MemoryMappedFile extends AnyRef

    The MemoryMappedFile class provides support for memory-mapped files.

    The MemoryMappedFile class provides support for memory-mapped files. This version works for Array [Byte].

  22. class MemoryMappedFileD extends AnyRef

    The MemoryMappedFileD class provides support for memory-mapped files.

    The MemoryMappedFileD class provides support for memory-mapped files. This version works for Double

  23. class MultiSet [T] extends MutableList[T]

    The MultiSet class provides an implementation for Union, Intersection and Subset for the generic MultiSet data type that extends MutableList.

  24. class Node [K] extends Error

    The Node class defines a splittable node type with methods for finding entries (keys and values).

  25. trait PQItem extends Identifiable

    The PQItem trait should be mixed in for items going on a PQueue.

  26. class PQueue [T <: PQItem] extends ResizableArray[T] with Serializable

    The PQueue class provides a simple linear implementation for priority queues.

    The PQueue class provides a simple linear implementation for priority queues. Once bug in scala 2.8 if fixed, may wish to switch to logarithmic implementation in scala.collection.mutable.PriorityQueue.

  27. trait PackageInfo extends AnyRef

    The PackageInfo trait provides methods to retrieve meta-data about packages.

  28. class PatMatcher extends MatchResult with Error

    The PatMatcher class provides a simple means for using Java regular expressions.

    The PatMatcher class provides a simple means for using Java regular expressions. Following the Facade design pattern, it combines functionality from both Pattern and Matcher. A faster alternative is PatMatcherB, see below.

  29. class PriorityQueue [A] extends AbstractIterable[A] with Iterable[A] with GenericOrderedTraversableTemplate[A, PriorityQueue] with IterableLike[A, PriorityQueue[A]] with Growable[A] with Builder[A, PriorityQueue[A]] with Serializable with Cloneable

    The PriorityQueue class implements priority queues using a heap.

    The PriorityQueue class implements priority queues using a heap. To prioritize elements of type A there must be an implicit Ordering [A] available at creation.

    Only the dequeue and dequeueAll methods will return methods in priority order (while removing elements from the heap). Standard collection methods including drop and iterator will remove or traverse the heap in whichever order seems most convenient.

    A

    type of the elements in this priority queue.

    Version

    1.0, 03/05/2004

    Since

    1

  30. class ReArray [A] extends IndexedSeq[A] with GenericTraversableTemplate[A, ReArray] with IndexedSeqOptimized[A, ReArray[A]]

    The ReArray class provides an implementation of mutable, resizable/dynamic arrays.

    The ReArray class provides an implementation of mutable, resizable/dynamic arrays. It is based on Scala's ResizableArray trait with additions and modifications. Preliminary testing has shown it to be faster than its competition: ArrayList and ArrayBuffer. ------------------------------------------------------------------------------------------- Added methods: 'shiftLeft', 'shiftLeft2', 'shiftRight', 'shiftRight2' and 'expand'. ------------------------------------------------------------------------------------------- Modified methods: 'reduceToSize': modified for performance reasons; instead of decreasing the size0 by 1 in a while loop and setting elements to null, it just decrements the size0 variable. FIX: possible minor memory leak 'companion': modified to return null as it is not required by our implementation; the ReArray object does not extend SeqFactory and thus 'newBuilder [A]' is absent. 'update': modified to catch the IndexOutOfBoundsException' and automatically expand the array. 'constructor': modified to take in the initial length and a normal Array; by doing this we can easily convert an object of type Array to a ReArray as the internal 'array' is changed from AnyRef to type A'. ------------------------------------------------------------------------------------------- Modified variables: 'array': the type is changed to A from AnyRef; this helps in assigning an Array [A] to a ReArray [A]; the initial value is changed to check if '_array' is null. 'size0': the initial value is changed to take care if '_array' is null. -------------------------------------------------------------------------------------------

  31. class SortedLinkedHashMap [A, B] extends LinkedHashMap[A, B] with Serializable

    The SortedLinkedHashMap class extends the scala LinkedHashMap class.

    The SortedLinkedHashMap class extends the scala LinkedHashMap class. It maintains the keys (type A) in order, so when you iterate the entry set, the entries are in key order. This is useful for merge algorithms, such as those used for sparse matrices.

  32. class Sorting [T] extends AnyRef

    The Sorting class provides direct and indirect methods to:

    The Sorting class provides direct and indirect methods to:

    find 'k'-th median ('k'-th smallest element) using QuickSelect sort large arrays using QuickSort sort small arrays using SelectionSort

    Direct methods are faster, but modify the array, while indirect methods are slower, but do not modify the array. This class is generic.

    See also

    SortingS for a version of this class specialized for StrNum.

    SortingR for a version of this class specialized for Real.

    SortingQ for a version of this class specialized for Rational.

    SortingL for a version of this class specialized for Long.

    SortingI for a version of this class specialized for Int.

    SortingD for a version of this class specialized for Double.

    SortingC for a version of this class specialized for Complex.

  33. class SortingC extends AnyRef

    The SortingC class provides direct and indirect methods to:

    The SortingC class provides direct and indirect methods to:

    find 'k'-th median ('k'-th smallest element) using QuickSelect sort large arrays using QuickSort sort small arrays using SelectionSort

    Direct methods are faster, but modify the array, while indirect methods are slower, but do not modify the array. This class is specialized for Complex.

    See also

    Sorting for a generic version of this class.

  34. class SortingD extends AnyRef

    The SortingD class provides direct and indirect methods to:

    The SortingD class provides direct and indirect methods to:

    find 'k'-th median ('k'-th smallest element) using QuickSelect sort large arrays using QuickSort sort small arrays using SelectionSort

    Direct methods are faster, but modify the array, while indirect methods are slower, but do not modify the array. This class is specialized for Double.

    See also

    Sorting for a generic version of this class.

  35. class SortingI extends AnyRef

    The SortingI class provides direct and indirect methods to:

    The SortingI class provides direct and indirect methods to:

    find 'k'-th median ('k'-th smallest element) using QuickSelect sort large arrays using QuickSort sort small arrays using SelectionSort

    Direct methods are faster, but modify the array, while indirect methods are slower, but do not modify the array. This class is specialized for Int.

    See also

    Sorting for a generic version of this class.

  36. class SortingL extends AnyRef

    The SortingL class provides direct and indirect methods to:

    The SortingL class provides direct and indirect methods to:

    find 'k'-th median ('k'-th smallest element) using QuickSelect sort large arrays using QuickSort sort small arrays using SelectionSort

    Direct methods are faster, but modify the array, while indirect methods are slower, but do not modify the array. This class is specialized for Long.

    See also

    Sorting for a generic version of this class.

  37. class SortingQ extends AnyRef

    The SortingQ class provides direct and indirect methods to:

    The SortingQ class provides direct and indirect methods to:

    find 'k'-th median ('k'-th smallest element) using QuickSelect sort large arrays using QuickSort sort small arrays using SelectionSort

    Direct methods are faster, but modify the array, while indirect methods are slower, but do not modify the array. This class is specialized for Rational.

    See also

    Sorting for a generic version of this class.

  38. class SortingR extends AnyRef

    The SortingR class provides direct and indirect methods to:

    The SortingR class provides direct and indirect methods to:

    find 'k'-th median ('k'-th smallest element) using QuickSelect sort large arrays using QuickSort sort small arrays using SelectionSort

    Direct methods are faster, but modify the array, while indirect methods are slower, but do not modify the array. This class is specialized for Real.

    See also

    Sorting for a generic version of this class.

  39. class SortingS extends AnyRef

    The SortingS class provides direct and indirect methods to:

    The SortingS class provides direct and indirect methods to:

    find 'k'-th median ('k'-th smallest element) using QuickSelect sort large arrays using QuickSort sort small arrays using SelectionSort

    Direct methods are faster, but modify the array, while indirect methods are slower, but do not modify the array. This class is specialized for StrNum.

    See also

    Sorting for a generic version of this class.

  40. final class Wildcard extends AnyVal

    The Wildcard value class provides an implementation for wildcard string matching that checks if the 'pattern' string matches against a given 'self' string based on single (CHAR_WILD_ONE) and/or multiple (CHAR_WILD_MANY) wildcards.

Value Members

  1. val NS_PER_MS: Double

    The number of nanoseconds per millisecond

  2. def banner(str: String): Unit

    Print a banner, i.e., a string in a box.

    Print a banner, i.e., a string in a box.

    str

    the string to put in the banner

  3. def gauge[R](block: ⇒ R): Double

    Calculate the elapsed time in milliseconds (ms) for the execution of an arbitrary block of code: 'gauge { block }'.

    Calculate the elapsed time in milliseconds (ms) for the execution of an arbitrary block of code: 'gauge { block }'. Return the block of code's elapsed time.

    block

    the block of code to be executed

    See also

    http://stackoverflow.com/questions/9160001/how-to-profile-methods-in-scala

  4. def getFromURL_File(path: String): Iterator[String]

    Return a line iterator for a line-oriented data source (e.g., CSV file).

    Return a line iterator for a line-oriented data source (e.g., CSV file). The data source is accessed via (1) URL, (2) file's absolute path, or (3) file's relative path (relative to 'DATA-DIR').

    path

    the path name of the data source (via URL or file's path name)

    See also

    stackoverflow.com/questions/5713558/detect-and-extract-url-from-a-string

  5. def sline(n: Int = 60): String

    Make a string for use in printing a line of '-'s.

    Make a string for use in printing a line of '-'s.

    n

    the number of '-'s to use

  6. def time[R](block: ⇒ R): R

    Print the elapsed time in milliseconds (ms) for the execution of an arbitrary block of code: 'time { block }'.

    Print the elapsed time in milliseconds (ms) for the execution of an arbitrary block of code: 'time { block }'. Return any result produced by the block of code.

    block

    the block of code to be executed

    See also

    http://stackoverflow.com/questions/9160001/how-to-profile-methods-in-scala

  7. def timed[R](block: ⇒ R): (R, Double)

    Calculate the elapsed time in milliseconds (ms) for the execution of an arbitrary block of code: 'timed { block }'.

    Calculate the elapsed time in milliseconds (ms) for the execution of an arbitrary block of code: 'timed { block }'. Return any result produced by the block of code and its elapsed time.

    block

    the block of code to be executed

    See also

    http://stackoverflow.com/questions/9160001/how-to-profile-methods-in-scala

  8. object BinarySearch

    The BinarySearch object provides a method for binary search.

  9. object BinarySearchTest extends App

    The BinarySearchTest object performs performance testing on BinarySearch.

    The BinarySearchTest object performs performance testing on BinarySearch. > run-main scalation.util.BinarySearchTest

  10. object BpTreeMapTest extends App

    The BpTreeMapTest object is used to test the BpTreeMap class by inserting increasing key values.

    The BpTreeMapTest object is used to test the BpTreeMap class by inserting increasing key values. > run-main scalation.util.BpTreeMapTest

  11. object BpTreeMapTest2 extends App

    The BpTreeMapTest2 object is used to test the BpTreeMap class by inserting random key values.

    The BpTreeMapTest2 object is used to test the BpTreeMap class by inserting random key values. > run-main scalation.util.BpTreeMapTest2

  12. object CommentExtractor extends App

    The CommentExtractor object is used to extract comments from source code (for example to send it to a spell checker).

    The CommentExtractor object is used to extract comments from source code (for example to send it to a spell checker). It reads from standard input and writes to standard output.

    See also

    http://ostermiller.org/findcomment.html > run-main scalation.util.CommentExtractor

  13. object DArray

    The DArray object is the companion object for the DArray class.

  14. object DArrayTest extends App

    The DArrayTest object tests the operations provided by DArrayTest.

    The DArrayTest object tests the operations provided by DArrayTest. > run-main scalation.util.DArrayTest

  15. object EasyWriterTest extends App

    The EasyWriterTest object is used to test the EasyWriter class.

    The EasyWriterTest object is used to test the EasyWriter class. It will write into a file, unless there is a command-line argument. > run-main scalation.util.EasyWriterTest

  16. object FloatLiteral extends App

    The FloatLiteral object is used to add '0' to floating point literals, which end in a dot ('.'), e.g., "12." -> "12.0".

    The FloatLiteral object is used to add '0' to floating point literals, which end in a dot ('.'), e.g., "12." -> "12.0".

    See also

    http://stackoverflow.com/questions/9655080/scala-operator-oddity "In scala 2.9 and before, 2. is interpreted as 2.0 so the ambiguous dot denotes a float literal. You should explicitly call the method by using the syntax (2).+(2). The ambiguous floating point syntax has been be deprecated since scala 2.10."

  17. object Identifiable

    The Identifiable object is used to generate unique identifiers.

  18. object MM_ArrayC extends Serializable

    The MM_ArrayC companion object provides factory methods for the MM_ArrayC class.

  19. object MM_ArrayCTest extends App

    The MM_ArrayCTest is used to test the MM_ArrayC class.

    The MM_ArrayCTest is used to test the MM_ArrayC class. > run-main scalation.util.MM_ArrayCTest

  20. object MM_ArrayD extends Serializable

    The MM_ArrayD companion object provides factory methods for the MM_ArrayD class.

  21. object MM_ArrayDTest extends App

    The MM_ArrayDTest is used to test the MM_ArrayD class.

    The MM_ArrayDTest is used to test the MM_ArrayD class. > run-main scalation.util.MM_ArrayDTest

  22. object MM_ArrayI extends Serializable

    The MM_ArrayI companion object provides factory methods for the MM_ArrayI class.

  23. object MM_ArrayITest extends App

    The MM_ArrayITest is used to test the MM_ArrayI class.

    The MM_ArrayITest is used to test the MM_ArrayI class. > run-main scalation.util.MM_ArrayITest

  24. object MM_ArrayL extends Serializable

    The MM_ArrayL companion object provides factory methods for the MM_ArrayL class.

  25. object MM_ArrayLTest extends App

    The MM_ArrayLTest is used to test the MM_ArrayL class.

    The MM_ArrayLTest is used to test the MM_ArrayL class. > run-main scalation.util.MM_ArrayLTest

  26. object MM_ArrayQ extends Serializable

    The MM_ArrayQ companion object provides factory methods for the MM_ArrayQ class.

  27. object MM_ArrayQTest extends App

    The MM_ArrayQTest is used to test the MM_ArrayQ class.

    The MM_ArrayQTest is used to test the MM_ArrayQ class. > run-main scalation.util.MM_ArrayQTest

  28. object MM_ArrayR extends Serializable

    The MM_ArrayR companion object provides factory methods for the MM_ArrayR class.

  29. object MM_ArrayRTest extends App

    The MM_ArrayRTest is used to test the MM_ArrayR class.

    The MM_ArrayRTest is used to test the MM_ArrayR class. > run-main scalation.util.MM_ArrayRTest

  30. object MM_ArrayS extends Serializable

    The MM_ArrayS companion object provides factory methods for the MM_ArrayS class.

  31. object MM_ArraySTest extends App

    The MM_ArraySTest is used to test the MM_ArrayS class.

    The MM_ArraySTest is used to test the MM_ArrayS class. > run-main scalation.util.MM_ArraySTest

  32. object MM_SortingC

    The MM_SortingC companion object provides shortcuts for calling methods from the MM_SortingC class.

  33. object MM_SortingCTest extends App

    The MM_SortingCTest object is used to test the correctness and performance of the 'median' and 'imedian' methods in the MM_SortingC class.

  34. object MM_SortingCTest2 extends App

    The MM_SortingCTest2 object is used to test the correctness and performance of the 'qsort' and 'iqsort' sorting methods in the MM_SortingC class.

  35. object MM_SortingCTest3 extends App

    The MM_SortingCTest3 object is used to test the correctness and performance of the 'selsort' and 'iselsort' sorting methods in the MM_SortingC class.

  36. object MM_SortingCTest4 extends App

    The MM_SortingCTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the MM_SortingC class.

    The MM_SortingCTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the MM_SortingC class. The sort is in decreasing order.

  37. object MM_SortingCTest5 extends App

    The MM_SortingCTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the MM_SortingC class.

    The MM_SortingCTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the MM_SortingC class. The sort is in decreasing order.

  38. object MM_SortingD

    The MM_SortingD companion object provides shortcuts for calling methods from the MM_SortingD class.

  39. object MM_SortingDTest extends App

    The MM_SortingDTest object is used to test the correctness and performance of the 'median' and 'imedian' methods in the MM_SortingD class.

  40. object MM_SortingDTest2 extends App

    The MM_SortingDTest2 object is used to test the correctness and performance of the 'qsort' and 'iqsort' sorting methods in the MM_SortingD class.

  41. object MM_SortingDTest3 extends App

    The MM_SortingDTest3 object is used to test the correctness and performance of the 'selsort' and 'iselsort' sorting methods in the MM_SortingD class.

  42. object MM_SortingDTest4 extends App

    The MM_SortingDTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the MM_SortingD class.

    The MM_SortingDTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the MM_SortingD class. The sort is in decreasing order.

  43. object MM_SortingDTest5 extends App

    The MM_SortingDTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the MM_SortingD class.

    The MM_SortingDTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the MM_SortingD class. The sort is in decreasing order.

  44. object MM_SortingI

    The MM_SortingI companion object provides shortcuts for calling methods from the MM_SortingI class.

  45. object MM_SortingITest extends App

    The MM_SortingITest object is used to test the correctness and performance of the 'median' and 'imedian' methods in the MM_SortingI class.

  46. object MM_SortingITest2 extends App

    The MM_SortingITest2 object is used to test the correctness and performance of the 'qsort' and 'iqsort' sorting methods in the MM_SortingI class.

  47. object MM_SortingITest3 extends App

    The MM_SortingITest3 object is used to test the correctness and performance of the 'selsort' and 'iselsort' sorting methods in the MM_SortingI class.

  48. object MM_SortingITest4 extends App

    The MM_SortingITest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the MM_SortingI class.

    The MM_SortingITest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the MM_SortingI class. The sort is in decreasing order.

  49. object MM_SortingITest5 extends App

    The MM_SortingITest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the MM_SortingI class.

    The MM_SortingITest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the MM_SortingI class. The sort is in decreasing order.

  50. object MM_SortingL

    The MM_SortingL companion object provides shortcuts for calling methods from the MM_SortingL class.

  51. object MM_SortingLTest extends App

    The MM_SortingLTest object is used to test the correctness and performance of the 'median' and 'imedian' methods in the MM_SortingL class.

  52. object MM_SortingLTest2 extends App

    The MM_SortingLTest2 object is used to test the correctness and performance of the 'qsort' and 'iqsort' sorting methods in the MM_SortingL class.

  53. object MM_SortingLTest3 extends App

    The MM_SortingLTest3 object is used to test the correctness and performance of the 'selsort' and 'iselsort' sorting methods in the MM_SortingL class.

  54. object MM_SortingLTest4 extends App

    The MM_SortingLTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the MM_SortingL class.

    The MM_SortingLTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the MM_SortingL class. The sort is in decreasing order.

  55. object MM_SortingLTest5 extends App

    The MM_SortingLTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the MM_SortingL class.

    The MM_SortingLTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the MM_SortingL class. The sort is in decreasing order.

  56. object MM_SortingQ

    The MM_SortingQ companion object provides shortcuts for calling methods from the MM_SortingQ class.

  57. object MM_SortingQTest extends App

    The MM_SortingQTest object is used to test the correctness and performance of the 'median' and 'imedian' methods in the MM_SortingQ class.

  58. object MM_SortingQTest2 extends App

    The MM_SortingQTest2 object is used to test the correctness and performance of the 'qsort' and 'iqsort' sorting methods in the MM_SortingQ class.

  59. object MM_SortingQTest3 extends App

    The MM_SortingQTest3 object is used to test the correctness and performance of the 'selsort' and 'iselsort' sorting methods in the MM_SortingQ class.

  60. object MM_SortingQTest4 extends App

    The MM_SortingQTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the MM_SortingQ class.

    The MM_SortingQTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the MM_SortingQ class. The sort is in decreasing order.

  61. object MM_SortingQTest5 extends App

    The MM_SortingQTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the MM_SortingQ class.

    The MM_SortingQTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the MM_SortingQ class. The sort is in decreasing order.

  62. object MM_SortingR

    The MM_SortingR companion object provides shortcuts for calling methods from the MM_SortingR class.

  63. object MM_SortingRTest extends App

    The MM_SortingRTest object is used to test the correctness and performance of the 'median' and 'imedian' methods in the MM_SortingR class.

  64. object MM_SortingRTest2 extends App

    The MM_SortingRTest2 object is used to test the correctness and performance of the 'qsort' and 'iqsort' sorting methods in the MM_SortingR class.

  65. object MM_SortingRTest3 extends App

    The MM_SortingRTest3 object is used to test the correctness and performance of the 'selsort' and 'iselsort' sorting methods in the MM_SortingR class.

  66. object MM_SortingRTest4 extends App

    The MM_SortingRTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the MM_SortingR class.

    The MM_SortingRTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the MM_SortingR class. The sort is in decreasing order.

  67. object MM_SortingRTest5 extends App

    The MM_SortingRTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the MM_SortingR class.

    The MM_SortingRTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the MM_SortingR class. The sort is in decreasing order.

  68. object MM_SortingS

    The MM_SortingS companion object provides shortcuts for calling methods from the MM_SortingS class.

  69. object MM_SortingSTest extends App

    The MM_SortingSTest object is used to test the correctness and performance of the 'median' and 'imedian' methods in the MM_SortingS class.

  70. object MM_SortingSTest2 extends App

    The MM_SortingSTest2 object is used to test the correctness and performance of the 'qsort' and 'iqsort' sorting methods in the MM_SortingS class.

  71. object MM_SortingSTest3 extends App

    The MM_SortingSTest3 object is used to test the correctness and performance of the 'selsort' and 'iselsort' sorting methods in the MM_SortingS class.

  72. object MM_SortingSTest4 extends App

    The MM_SortingSTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the MM_SortingS class.

    The MM_SortingSTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the MM_SortingS class. The sort is in decreasing order.

  73. object MM_SortingSTest5 extends App

    The MM_SortingSTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the MM_SortingS class.

    The MM_SortingSTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the MM_SortingS class. The sort is in decreasing order.

  74. object MemoryMappedFileDTest extends App

    The MemoryMappedFileDTest is used to test the MemoryMappedFileD class.

    The MemoryMappedFileDTest is used to test the MemoryMappedFileD class. > run-main scalation.util.MemoryMappedFileDTest

  75. object MemoryMappedFileTest extends App

    The MemoryMappedFileTest is used to test the MemoryMappedFile class.

    The MemoryMappedFileTest is used to test the MemoryMappedFile class. > run-main scalation.util.MemoryMappedFileTest

  76. object Monitor

    The Monitor object is used to trace the actions/events in the models.

  77. object MultiSet extends Serializable

    The MultiSet object is the companion object for the MultiSet' class.

  78. object MultiSetTest extends App

    The MultiSetTest object is used to test the MultiSet class.

    The MultiSetTest object is used to test the MultiSet class. > run-main scalation.util.MultiSetTest

  79. object NodeTest extends App

    The NodeTest object is used to test the Node class.

    The NodeTest object is used to test the Node class. > run-main scalation.util.NodeTest

  80. object PQueueTest extends App

    The PQueueTest object is used to test the PQueue class.

  81. object PatMatcherTest extends App

    The PatMatcherTest object is used to test the PatMatcher vs.

    The PatMatcherTest object is used to test the PatMatcher vs. PatMatcherB classes. It compares the match results and performance of Java and Brics regex pattern matchers.

    See also

    http://lh3lh3.users.sourceforge.net/reb.shtml > run-main scalation.util.PatMatcherTest

  82. object PriorityQueue extends OrderedTraversableFactory[PriorityQueue] with Serializable

    The PriorityQueue companion object provides builder methods.

  83. object PriorityQueueTest extends App

    The PriorityQueueTest object is used to test the PriorityQueue class.

    The PriorityQueueTest object is used to test the PriorityQueue class. Note, element 'e1' has higher priority than 'e2' when 'e1 > e2'. To change from "largest first" to "smallest first", could use negative numbers or swap the comparison order. > run-main scalation.util.PriorityQueueTest

  84. object QuasiQuoteTest extends App

    The QuasiQuoteTest object is used to test how Quasi-Quotes can be used for code generation.

    The QuasiQuoteTest object is used to test how Quasi-Quotes can be used for code generation. FIX: generate class files (.class) rather than execute the code > run-main scalation.util.QuasiQuoteTest

  85. object ReArray

    The ReArray object is the companion object for the ReArray class.

  86. object ReArrayTest extends App

    The ReArrayTest object tests the operations provided by ReArrayTest.

    The ReArrayTest object tests the operations provided by ReArrayTest. > run-main scalation.util.ReArrayTest

  87. object Replace extends App

    The Replace object is used to replace pattern pat1 with pat2.

    The Replace object is used to replace pattern pat1 with pat2. It reads from standard input and writes to standard output.

  88. object RunSpellCheck extends App

    The RunSpellCheck object is used to check the spelling of the a given package.

    The RunSpellCheck object is used to check the spelling of the a given package. The package directory (relative path) is entered as a command-line argument. Ex: 'scalation/math' > run-main scalation.util.RunSpellCheck <package directory>

  89. object SortedLinkedHashMapTest extends App

    The SortedLinkedHashMapTest object is used to test the SortedLinkedHashMap class.

  90. object Sorting

    The Sorting companion object provides shortcuts for calling methods from the Sorting class.

  91. object SortingC

    The SortingC companion object provides shortcuts for calling methods from the SortingC class.

  92. object SortingCTest extends App

    The SortingCTest object is used to test the correctness and performance of the 'median' and 'imedian' methods in the SortingC class.

  93. object SortingCTest2 extends App

    The SortingCTest2 object is used to test the correctness and performance of the 'qsort' and 'iqsort' sorting methods in the SortingC class.

  94. object SortingCTest3 extends App

    The SortingCTest3 object is used to test the correctness and performance of the 'selsort' and 'iselsort' sorting methods in the SortingC class.

  95. object SortingCTest4 extends App

    The SortingCTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingC class.

    The SortingCTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingC class. The sort is in decreasing order.

  96. object SortingCTest5 extends App

    The SortingCTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingC class.

    The SortingCTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingC class. The sort is in decreasing order.

  97. object SortingD

    The SortingD companion object provides shortcuts for calling methods from the SortingD class.

  98. object SortingDTest extends App

    The SortingDTest object is used to test the correctness and performance of the 'median' and 'imedian' methods in the SortingD class.

  99. object SortingDTest2 extends App

    The SortingDTest2 object is used to test the correctness and performance of the 'qsort' and 'iqsort' sorting methods in the SortingD class.

  100. object SortingDTest3 extends App

    The SortingDTest3 object is used to test the correctness and performance of the 'selsort' and 'iselsort' sorting methods in the SortingD class.

  101. object SortingDTest4 extends App

    The SortingDTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingD class.

    The SortingDTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingD class. The sort is in decreasing order.

  102. object SortingDTest5 extends App

    The SortingDTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingD class.

    The SortingDTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingD class. The sort is in decreasing order.

  103. object SortingI

    The SortingI companion object provides shortcuts for calling methods from the SortingI class.

  104. object SortingITest extends App

    The SortingITest object is used to test the correctness and performance of the 'median' and 'imedian' methods in the SortingI class.

  105. object SortingITest2 extends App

    The SortingITest2 object is used to test the correctness and performance of the 'qsort' and 'iqsort' sorting methods in the SortingI class.

  106. object SortingITest3 extends App

    The SortingITest3 object is used to test the correctness and performance of the 'selsort' and 'iselsort' sorting methods in the SortingI class.

  107. object SortingITest4 extends App

    The SortingITest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingI class.

    The SortingITest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingI class. The sort is in decreasing order.

  108. object SortingITest5 extends App

    The SortingITest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingI class.

    The SortingITest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingI class. The sort is in decreasing order.

  109. object SortingL

    The SortingL companion object provides shortcuts for calling methods from the SortingL class.

  110. object SortingLTest extends App

    The SortingLTest object is used to test the correctness and performance of the 'median' and 'imedian' methods in the SortingL class.

  111. object SortingLTest2 extends App

    The SortingLTest2 object is used to test the correctness and performance of the 'qsort' and 'iqsort' sorting methods in the SortingL class.

  112. object SortingLTest3 extends App

    The SortingLTest3 object is used to test the correctness and performance of the 'selsort' and 'iselsort' sorting methods in the SortingL class.

  113. object SortingLTest4 extends App

    The SortingLTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingL class.

    The SortingLTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingL class. The sort is in decreasing order.

  114. object SortingLTest5 extends App

    The SortingLTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingL class.

    The SortingLTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingL class. The sort is in decreasing order.

  115. object SortingQ

    The SortingQ companion object provides shortcuts for calling methods from the SortingQ class.

  116. object SortingQTest extends App

    The SortingQTest object is used to test the correctness and performance of the 'median' and 'imedian' methods in the SortingQ class.

  117. object SortingQTest2 extends App

    The SortingQTest2 object is used to test the correctness and performance of the 'qsort' and 'iqsort' sorting methods in the SortingQ class.

  118. object SortingQTest3 extends App

    The SortingQTest3 object is used to test the correctness and performance of the 'selsort' and 'iselsort' sorting methods in the SortingQ class.

  119. object SortingQTest4 extends App

    The SortingQTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingQ class.

    The SortingQTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingQ class. The sort is in decreasing order.

  120. object SortingQTest5 extends App

    The SortingQTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingQ class.

    The SortingQTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingQ class. The sort is in decreasing order.

  121. object SortingR

    The SortingR companion object provides shortcuts for calling methods from the SortingR class.

  122. object SortingRTest extends App

    The SortingRTest object is used to test the correctness and performance of the 'median' and 'imedian' methods in the SortingR class.

  123. object SortingRTest2 extends App

    The SortingRTest2 object is used to test the correctness and performance of the 'qsort' and 'iqsort' sorting methods in the SortingR class.

  124. object SortingRTest3 extends App

    The SortingRTest3 object is used to test the correctness and performance of the 'selsort' and 'iselsort' sorting methods in the SortingR class.

  125. object SortingRTest4 extends App

    The SortingRTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingR class.

    The SortingRTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingR class. The sort is in decreasing order.

  126. object SortingRTest5 extends App

    The SortingRTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingR class.

    The SortingRTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingR class. The sort is in decreasing order.

  127. object SortingS

    The SortingS companion object provides shortcuts for calling methods from the SortingS class.

  128. object SortingSTest extends App

    The SortingSTest object is used to test the correctness and performance of the 'median' and 'imedian' methods in the SortingS class.

  129. object SortingSTest2 extends App

    The SortingSTest2 object is used to test the correctness and performance of the 'qsort' and 'iqsort' sorting methods in the SortingS class.

  130. object SortingSTest3 extends App

    The SortingSTest3 object is used to test the correctness and performance of the 'selsort' and 'iselsort' sorting methods in the SortingS class.

  131. object SortingSTest4 extends App

    The SortingSTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingS class.

    The SortingSTest4 object is used to test the correctness and performance of the 'qsort2' and 'iqsort2' sorting methods in the SortingS class. The sort is in decreasing order.

  132. object SortingSTest5 extends App

    The SortingSTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingS class.

    The SortingSTest5 object is used to test the correctness and performance of the 'selsort2' and 'iselsort2' sorting methods in the SortingS class. The sort is in decreasing order.

  133. object SortingTest extends App

    The SortingTest object is used to test the correctness and performance of the methods in the Sorting class that find 'k'-medians.

  134. object SortingTest2 extends App

    The SortingTest2 object is used to test the correctness and performance of the sorting methods in the Sorting class.

  135. object SpellCheck extends Error

    The SpellCheck object is used to check the spelling in source code comments.

    The SpellCheck object is used to check the spelling in source code comments. If not using Linux, may need to replace path for 'DICTIONARY'. Note, okay to use '/' since the dictionary location is system-dependent anyway.

  136. object SpellCheckTest extends App

    The SpellCheckTest object is used to test the SpellCheck object.

    The SpellCheckTest object is used to test the SpellCheck object. run-main scalation.util.SpellCheckTest

  137. object Swap

    The Swap class provides a method to swap elements in an Array or ArrayBuffer.

    The Swap class provides a method to swap elements in an Array or ArrayBuffer. Note, ArrayBuffer is resizable (similar to Java's ArrayList).

  138. object SwapTest extends App

    This SwapTest is used to test the Swap object.

    This SwapTest is used to test the Swap object. > run-main scalation.util.SwapTest

  139. object TestBreak extends App

    The TestBreak object provides an example of how to use 'breaks' in Scala.

    The TestBreak object provides an example of how to use 'breaks' in Scala.

    See also

    http://www.scala-lang.org/archives/downloads/distrib/files/nightly/docs/library/scala/util/control/Breaks.html

    http://daily-scala.blogspot.com/2010/04/breaks.html

  140. object Unicode

    The Unicode object provides arrays to facilitate the use of Unicode.

    The Unicode object provides arrays to facilitate the use of Unicode. ScalaTion currently uses a few UTF-16 characters, see code below. Most UTF-16 characters are 2 bytes (16 bits). Extended characters are encoded in 4 bytes. ScalaTion limits characters to the range 'U+0000' to 'U+2bff'. Developers should test Unicode symbols here before trying them in the code.

    See also

    scalation.relalgebra.Relation

    scalation.math.StrNum

    scalation.math.Real

    scalation.math.Rational

    scalation.math.Complex

    scalation.math (package object)

    scalation.linalgebra.bld.BldVector

    scalation.analytics.Regression

    arxiv.org/abs/1112.1751 ------------------------------------------------------------------------------ Unicode is used in the following:

    en.wikipedia.org/wiki/List_of_Unicode_characters

    www.tamasoft.co.jp/en/general-info/unicode.html

    en.wikipedia.org/wiki/UTF-16

  141. object UnicodeTest extends App

    The UnicodeTest object is used to the Unicode object.

    The UnicodeTest object is used to the Unicode object. > run-main scalation.util.UnicodeTest

  142. object Wildcard

    The Wildcard object defines useful contants for the Wildcard class.

  143. object WildcardTest extends App

    The WildcardTest object is used to test the Wildcard class.

    The WildcardTest object is used to test the Wildcard class. > run-main scalation.util.WildcardTest

Inherited from AnyRef

Inherited from Any

Ungrouped