Object

mlbigbook.math

DoubleSparseMathVector

Related Doc: package math

Permalink

object DoubleSparseMathVector extends Sparse[Double]

Implementation for SparseVector[Double].

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

Type Members

  1. final type N = Double

    Permalink
    Definition Classes
    BaseMathVecOps → MathVectorOps

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. val addS: breeze.linalg.operators.OpAdd.Impl2[SparseVector[Double], Double, SparseVector[Double]]

    Permalink

    Adds a scalar to each element of a vector.

    Adds a scalar to each element of a vector.

    Definition Classes
    DoubleSparseMathVectorMathVectorOps
  5. val addV: breeze.linalg.operators.OpAdd.Impl2[SparseVector[Double], SparseVector[Double], SparseVector[Double]]

    Permalink

    Performs element-wise addition of two vectors.

    Performs element-wise addition of two vectors.

    Definition Classes
    DoubleSparseMathVectorMathVectorOps
  6. final def apply[A](v: SparseVector[A])(index: Int): A

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. 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
  10. val divS: breeze.linalg.operators.OpDiv.Impl2[SparseVector[Double], Double, SparseVector[Double]]

    Permalink

    Divides each vector element by a scalar.

    Divides each vector element by a scalar.

    Definition Classes
    DoubleSparseMathVectorMathVectorOps
  11. val divV: breeze.linalg.operators.OpDiv.Impl2[SparseVector[Double], SparseVector[Double], SparseVector[Double]]

    Permalink

    Performs element-wise division between two vectors.

    Performs element-wise division between two vectors.

    Definition Classes
    DoubleSparseMathVectorMathVectorOps
  12. val dot: breeze.linalg.operators.OpMulInner.Impl2[SparseVector[Double], SparseVector[Double], Double]

    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
    DoubleSparseMathVectorMathVectorOps
  13. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. 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
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. 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
  18. final def foreach[A](v: SparseVector[A])(f: (A) ⇒ Any): Unit

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

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

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

    Permalink
    Definition Classes
    Any
  22. 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
  23. val mulS: breeze.linalg.operators.OpMulScalar.Impl2[SparseVector[Double], Double, SparseVector[Double]]

    Permalink

    Multiplies each vector element by a scalar.

    Multiplies each vector element by a scalar.

    Definition Classes
    DoubleSparseMathVectorMathVectorOps
  24. val mulV: breeze.linalg.operators.OpMulScalar.Impl2[SparseVector[Double], SparseVector[Double], SparseVector[Double]]

    Permalink

    Performs element-wise multiplication between two vectors.

    Performs element-wise multiplication between two vectors.

    Definition Classes
    DoubleSparseMathVectorMathVectorOps
  25. implicit final lazy val n: Fractional[Double]

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

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

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

    Permalink
    Definition Classes
    AnyRef
  29. lazy val one: N

    Permalink
    Attributes
    protected
    Definition Classes
    MathVectorOps
  30. 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
  31. 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
  32. implicit final lazy val s: Semiring[Double]

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

    Permalink
    Definition Classes
    SparseVectorOps
  34. val subS: breeze.linalg.operators.OpSub.Impl2[SparseVector[Double], Double, SparseVector[Double]]

    Permalink

    Subtracts a scalar from each element of a vector.

    Subtracts a scalar from each element of a vector.

    Definition Classes
    DoubleSparseMathVectorMathVectorOps
  35. val subV: breeze.linalg.operators.OpSub.Impl2[SparseVector[Double], SparseVector[Double], SparseVector[Double]]

    Permalink

    Performs element-wise subtraction of two vectors.

    Performs element-wise subtraction of two vectors.

    Definition Classes
    DoubleSparseMathVectorMathVectorOps
  36. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    MathVectorOps
  44. 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 Sparse[Double]

Inherited from BaseMathVecOps[Double, SparseVector]

Inherited from MathVectorOps[SparseVector]

Inherited from VectorOps[SparseVector]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped