Package

breeze

util

Permalink

package util

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. implicit final class AwesomeBitSet extends AnyVal

    Permalink
  2. implicit final class AwesomeScalaBitSet extends AnyVal

    Permalink
  3. class BloomFilter[T] extends (T) ⇒ Boolean with Serializable

    Permalink

    A BloomFilter is an approximate set that sometimes gives false positives.

    A BloomFilter is an approximate set that sometimes gives false positives. That is, if bf(x) returns true, then it might have been added to the set. If it returns false, then it definitely has not. This is useful for caching and approximation.

    Annotations
    @SerialVersionUID()
  4. trait CachedHashCode extends AnyRef

    Permalink

    Mixin for case classes that compute their hashcode once, and then cache it.

    Mixin for case classes that compute their hashcode once, and then cache it. Only good if the case class is immutable, and its contents are also immutable "all the way down".

  5. final class CompositeIndex[U] extends Index[(Int, U)]

    Permalink

    An Index over N kinds of things.

    An Index over N kinds of things. A little type unsafe.

  6. class DenseIntIndex extends Index[Int]

    Permalink

    For use when we need an index, but we already have (densely packed) positive ints and don't want hash overhead.

  7. trait DoubleImplicits extends AnyRef

    Permalink
  8. class EitherIndex[L, R] extends Index[Either[L, R]]

    Permalink

    An Index over two kinds of things.

    An Index over two kinds of things. Layout is straightforward: The first left.size entries are from the left index, while the next right.size are from the right index. Values are wrapped in Left/Right

  9. trait Encoder[T] extends AnyRef

    Permalink

    For encoding counters as vectors and decoding vectors back to counters

  10. class HashIndex[T] extends MutableIndex[T] with Serializable

    Permalink

    Class that builds a 1-to-1 mapping between Ints and T's, which is very useful for efficiency concerns.

    Class that builds a 1-to-1 mapping between Ints and T's, which is very useful for efficiency concerns.

    Two extra views are provided: the index.synchronized view enables threadsafe access and the index.immutable view keeps prevents the (view) from being updated.

    Annotations
    @SerialVersionUID()
  11. trait Index[T] extends Iterable[T] with (T) ⇒ Int with Serializable

    Permalink

    Trait that marks an O(1) bidirectional map between Ints (increasing from 0) and T's.

    Trait that marks an O(1) bidirectional map between Ints (increasing from 0) and T's. This class is used, for example, to efficiently build unique vector space mappings for strings. The methods in this trait do not mutate the underlying index. Use either a MutableIndex or one of the companion object constructor methods to build an index.

    Annotations
    @SerialVersionUID()
  12. class Interner[T] extends (T) ⇒ T with Serializable

    Permalink

    Class that mimics Java's string interner, but for anything.

    Class that mimics Java's string interner, but for anything. Threadsafe.

  13. trait Isomorphism[T, U] extends Serializable

    Permalink

    An Isomorphism is defined by a reversible transformation between two types.

    An Isomorphism is defined by a reversible transformation between two types. useful when one set of implicits is easily defined for some type, but not for some other type

    Annotations
    @SerialVersionUID()
  14. class IsomorphismIndex[T, U] extends Index[U] with Serializable

    Permalink

    Maps an index of type T to an index of type U using an isomorphism implicit

    Maps an index of type T to an index of type U using an isomorphism implicit

    Annotations
    @SerialVersionUID()
  15. trait IteratorImplicits extends AnyRef

    Permalink
  16. class LazyLogger extends Serializable

    Permalink

    A logger that only evaluates parameters lazily if the corresponding log level is enabled.

  17. trait Lens[T, U] extends AnyRef

    Permalink

    A Lens defines a functional way of handling getters/setters.

    A Lens defines a functional way of handling getters/setters. They're useful for extending transformations on a part of a case class to the whole case class by updating that one component

  18. trait MutableIndex[T] extends Index[T]

    Permalink

    An Index that contains an extra method: index that adds the given element (if necessary), returning its (possibly new) position in the index.

    An Index that contains an extra method: index that adds the given element (if necessary), returning its (possibly new) position in the index.

  19. abstract class Opt extends AnyRef

    Permalink

    Base class for all option case classes in breeze

  20. class OptionIndex[T] extends Index[Option[T]]

    Permalink

    Lifts an index of T into an index of Option[T] .

    Lifts an index of T into an index of Option[T] . The last element is None. Everything else is as you expect.

  21. class PairIndex[T, U] extends Index[(T, U)]

    Permalink

    An index over pairs from a pair of indexes

  22. class SeqExtras[T] extends AnyRef

    Permalink
  23. trait SerializableLogging extends Serializable

    Permalink

    Stupid Typesafe logging lib trait isn't serializable.

    Stupid Typesafe logging lib trait isn't serializable. This is just a better version.

  24. trait SynchronizedIndex[T] extends Index[T]

    Permalink

    Synchronized view of an Index for thread-safe access.

  25. trait SynchronizedMutableIndex[T] extends MutableIndex[T] with SynchronizedIndex[T]

    Permalink

    A synchronized view of a MutableIndex.

  26. type TODO = Nothing

    Permalink

    Similar to the TODO expression, except this one is for types.

  27. class TopK[T] extends Iterable[T]

    Permalink

    A Top-K queue keeps a list of the top K elements seen so far as ordered by the given comparator.

  28. class TopKIterable[T] extends AnyRef

    Permalink

    A rich iterable extension that adds the topk method.

  29. class TopKIterator[T] extends AnyRef

    Permalink

Value Members

  1. object ArrayUtil

    Permalink

    Array operations on generic arrays, a little faster in general, I hope.

  2. object BloomFilter extends Serializable

    Permalink
  3. def CALLER(nth: Int): String

    Permalink

    Computes the source file location of the nth parent.

    Computes the source file location of the nth parent. 0 is equivalent to LOCATION

    Annotations
    @noinline()
  4. object Encoder

    Permalink
  5. object EnumerationIndex

    Permalink
  6. object Implicits extends DoubleImplicits with IteratorImplicits

    Permalink

    Stores various implicits, also available by importing breeze.util._

  7. object Index extends Serializable

    Permalink

    Utilities for manipulating and creating Index objects.

  8. object Interner extends Serializable

    Permalink
  9. object Isomorphism extends Serializable

    Permalink
  10. object Iterators

    Permalink

    Utilities and implicits for iterators.

    Utilities and implicits for iterators. Nothing major.

  11. object JavaArrayOps

    Permalink

    This utility class facilitates transparent access of breeze data objects from plain Java without Scala-related Generic complications.

  12. def LOCATION: String

    Permalink

    Computes the current source file and line number.

    Computes the current source file and line number.

    Annotations
    @noinline()
  13. object Lens

    Permalink
  14. object Profiling

    Permalink
  15. object ReflectionUtil

    Permalink

  16. object Sorting

    Permalink

  17. def TODO: Nothing

    Permalink

    You can write TODO in your code, and get an exception at runtime for any expression.

  18. object Terminal

    Permalink

  19. object TopK

    Permalink
  20. object TopKImplicits

    Permalink
  21. object UpdateSerializedObjects

    Permalink

    Class that reads in objects serialized with breeze.util.writeObject, ignoring their serialversionuids, and then writes them to the same file.

  22. def XXX: Nothing

    Permalink

    You can write XXX in your code and get an exception at runtime for any expression.

  23. implicit def _bitsetcbf[U]: CanBuildFrom[BitSet, U, Set[U]]

    Permalink
  24. implicit def arraySeqExtras[T](s: Array[T]): SeqExtras[T]

    Permalink
  25. def memoryString: String

    Permalink

    Returns a string with info about the available and used space.

  26. def nonstupidObjectInputStream(stream: InputStream, ignoreSerialVersionUID: Boolean = false): ObjectInputStream

    Permalink

    For reasons that are best described as asinine, ObjectInputStream does not take into account Thread.currentThread.getContextClassLoader.

    For reasons that are best described as asinine, ObjectInputStream does not take into account Thread.currentThread.getContextClassLoader. This fixes that.

    ignoreSerialVersionUID

    this is not a safe thing to do, but sometimes...

  27. object partition extends UFunc

    Permalink

    Creates a copy of the array with its elements rearranged in such a way that the value of the element in kth position is in the position it would be in a sorted array.

    Creates a copy of the array with its elements rearranged in such a way that the value of the element in kth position is in the position it would be in a sorted array. All elements smaller than the kth element are moved before this element and all equal or greater are moved behind it. The ordering of the elements in the two partitions is undefined.

    Based on the numpy method of the same name. Docs lifted from numpy

  28. object quickSelect extends UFunc

    Permalink

    Quickselect for linear-time medians, etc.

    Quickselect for linear-time medians, etc. See scala.util.Sorting and breeze.util.Sorting

  29. def readObject[T](loc: File, ignoreSerialVersionUID: Boolean): T

    Permalink

    Deserializes an object using java serialization

  30. def readObject[T](loc: File): T

    Permalink

    Deserializes an object using java serialization

  31. implicit def seqExtras[T](s: Seq[T]): SeqExtras[T]

    Permalink
  32. def trace[T](a: T): T

    Permalink

    prints a and returns it.

  33. def writeObject[T](out: File, parser: T): Unit

    Permalink

    Serializes an object using java serialization

Deprecated Value Members

  1. object quickSelectImpl extends UFunc

    Permalink

    quickSelectImpl does not clone the input array before doing a quickSelect-sort but instead swaps in place, and therefore, allows other functions to access the intermediate results of the sorting procedure.

    quickSelectImpl does not clone the input array before doing a quickSelect-sort but instead swaps in place, and therefore, allows other functions to access the intermediate results of the sorting procedure.

    After quickSelectImpl is run, it is guaranteed that the input array will be swapped around such that every number left of position will be equal or smaller than the element at position, and every number right of position will be equal or larger than the element at position.

    This can be useful when further using the intermediate results downstream. For example, appending an element or updating an element to an array which has already been through quickSelectImpl and then re-calculating quickSelectImpl will be faster than applying quickSelectImpl de-novo to the original unsorted array.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.12) use quickSelect.inPlace instead

Inherited from AnyRef

Inherited from Any

Ungrouped