Class

mlbigbook.math

Sparse

Related Doc: package math

Permalink

abstract class Sparse[Num] extends BaseMathVecOps[Num, SparseVector]

Base partial implementation for DenseVectors. Implements the MathVectorOps methods for the DenseVector type. Also defines the zeros, ones methds of MathVectorOps.

Attributes
protected
Linear Supertypes
BaseMathVecOps[Num, SparseVector], MathVectorOps[SparseVector], VectorOps[SparseVector], Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Sparse
  2. BaseMathVecOps
  3. MathVectorOps
  4. VectorOps
  5. Serializable
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Sparse()(implicit arg0: Fractional[Num], arg1: Zero[Num], arg2: Semiring[Num], arg3: ClassTag[Num])

    Permalink

Type Members

  1. final type N = Num

    Permalink
    Definition Classes
    BaseMathVecOps → MathVectorOps

Abstract Value Members

  1. abstract val addS: breeze.linalg.operators.OpAdd.Impl2[SparseVector[N], N, SparseVector[N]]

    Permalink

    Adds a scalar to each element of a vector.

    Adds a scalar to each element of a vector.

    Definition Classes
    MathVectorOps
  2. abstract val addV: breeze.linalg.operators.OpAdd.Impl2[SparseVector[N], SparseVector[N], SparseVector[N]]

    Permalink

    Performs element-wise addition of two vectors.

    Performs element-wise addition of two vectors.

    Definition Classes
    MathVectorOps
  3. abstract val divS: breeze.linalg.operators.OpDiv.Impl2[SparseVector[N], N, SparseVector[N]]

    Permalink

    Divides each vector element by a scalar.

    Divides each vector element by a scalar.

    Definition Classes
    MathVectorOps
  4. abstract val divV: breeze.linalg.operators.OpDiv.Impl2[SparseVector[N], SparseVector[N], SparseVector[N]]

    Permalink

    Performs element-wise division between two vectors.

    Performs element-wise division between two vectors.

    Definition Classes
    MathVectorOps
  5. abstract val dot: breeze.linalg.operators.OpMulInner.Impl2[SparseVector[N], SparseVector[N], N]

    Permalink

    Performs a dot product operation between two vectors, which results in a scalar.

    Performs a dot product operation between two vectors, which results in a scalar.

    Definition Classes
    MathVectorOps
  6. abstract val mulS: breeze.linalg.operators.OpMulScalar.Impl2[SparseVector[N], N, SparseVector[N]]

    Permalink

    Multiplies each vector element by a scalar.

    Multiplies each vector element by a scalar.

    Definition Classes
    MathVectorOps
  7. abstract val mulV: breeze.linalg.operators.OpMulScalar.Impl2[SparseVector[N], SparseVector[N], SparseVector[N]]

    Permalink

    Performs element-wise multiplication between two vectors.

    Performs element-wise multiplication between two vectors.

    Definition Classes
    MathVectorOps
  8. abstract val subS: breeze.linalg.operators.OpSub.Impl2[SparseVector[N], N, SparseVector[N]]

    Permalink

    Subtracts a scalar from each element of a vector.

    Subtracts a scalar from each element of a vector.

    Definition Classes
    MathVectorOps
  9. abstract val subV: breeze.linalg.operators.OpSub.Impl2[SparseVector[N], SparseVector[N], SparseVector[N]]

    Permalink

    Performs element-wise subtraction of two vectors.

    Performs element-wise subtraction of two vectors.

    Definition Classes
    MathVectorOps

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def apply[A](v: SparseVector[A])(index: Int): A

    Permalink
    Definition Classes
    SparseVectorOps
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def copy(v: SparseVector[N]): SparseVector[N]

    Permalink

    Performs a shallow copy of the vector's contents.

    Performs a shallow copy of the vector's contents. Each element is copied to a newly allocated vector of type V[N]. If N is a primitive or other value type, then this will be a deep copy. Otherwise, the reference will be copied.

    Definition Classes
    SparseMathVectorOps
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. final def fill[A](size: Int)(value: ⇒ A)(implicit arg0: ClassTag[A], arg1: Zero[A]): SparseVector[A]

    Permalink

    Create a new vector of the input size where each element has the value v.

    Create a new vector of the input size where each element has the value v.

    Definition Classes
    SparseMathVectorOps
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def fold[B](v: SparseVector[N])(zero: B)(combine: (B, N) ⇒ B)(implicit arg0: ClassTag[B]): B

    Permalink

    From the starting value, zero, applies the function combine to elements of the input vector v.

    From the starting value, zero, applies the function combine to elements of the input vector v. This method evaluates to the final accumulated value of this operation across all elements of the vector. Execution order is not guaranteed, so combine must be side-effect free, associative, and communicative.

    Definition Classes
    SparseMathVectorOps
  13. final def foreach[A](v: SparseVector[A])(f: (A) ⇒ Any): Unit

    Permalink
    Definition Classes
    SparseVectorOps
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. final def map[B](v: SparseVector[N])(f: (N) ⇒ B)(implicit arg0: ClassTag[B], arg1: Fractional[B], arg2: Zero[B]): SparseVector[B]

    Permalink

    Change every element of a vector V using the function f.

    Change every element of a vector V using the function f. No side effects.

    Definition Classes
    SparseMathVectorOps
  18. implicit final lazy val n: Fractional[Num]

    Permalink
    Definition Classes
    BaseMathVecOps → MathVectorOps
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. lazy val one: N

    Permalink
    Attributes
    protected
    Definition Classes
    MathVectorOps
  23. final def ones(size: Int): SparseVector[N]

    Permalink

    Creates a new vector of the input size where each element has value 1.

    Creates a new vector of the input size where each element has value 1.

    Definition Classes
    SparseMathVectorOps
  24. final def reduce[A1 >: N](v: SparseVector[N])(r: (A1, A1) ⇒ A1)(implicit arg0: ClassTag[A1]): A1

    Permalink

    Apply a binary combination operator, r, to pairs of elements from the input vector, v.

    Apply a binary combination operator, r, to pairs of elements from the input vector, v. Note that the output of r shall be applied to both vector elements as well as other, previous outputs from r. The order of execution is not guaranteed. Therefore, it is important that r is associative and communiative.

    Definition Classes
    SparseMathVectorOps
  25. implicit final lazy val s: Semiring[Num]

    Permalink
    Definition Classes
    BaseMathVecOps → MathVectorOps
  26. final def size(v: SparseVector[_]): Int

    Permalink
    Definition Classes
    SparseVectorOps
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. final def toSeq[A](v: SparseVector[A])(implicit arg0: ClassTag[A]): Seq[A]

    Permalink
    Definition Classes
    SparseVectorOps
  29. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. implicit final lazy val z: Zero[Num]

    Permalink
    Definition Classes
    BaseMathVecOps → MathVectorOps
  34. lazy val zero: N

    Permalink
    Attributes
    protected
    Definition Classes
    MathVectorOps
  35. final def zeros(size: Int): SparseVector[N]

    Permalink

    Creates a new vector of the input size where each element has value 0.

    Creates a new vector of the input size where each element has value 0.

    Definition Classes
    SparseMathVectorOps

Inherited from BaseMathVecOps[Num, SparseVector]

Inherited from MathVectorOps[SparseVector]

Inherited from VectorOps[SparseVector]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped