cc.factorie.la

ArraySparseBinaryTensor

trait ArraySparseBinaryTensor extends SparseBinaryTensor with ProtectedIntArrayBuffer

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ArraySparseBinaryTensor
  2. ProtectedIntArrayBuffer
  3. SparseBinaryTensor
  4. SparseTensor
  5. Tensor
  6. Serializable
  7. Serializable
  8. MutableDoubleSeq
  9. IncrementableDoubleSeq
  10. SparseDoubleSeq
  11. DoubleSeq
  12. AnyRef
  13. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def activeDomains: Array[IntSeq]

    Definition Classes
    Tensor
  2. abstract def blankCopy: Tensor

    Definition Classes
    Tensor
  3. abstract def copy: Tensor

    Definition Classes
    Tensor
  4. abstract def dimensions: Array[Int]

    Definition Classes
    Tensor
  5. abstract def length: Int

    Definition Classes
    DoubleSeq
  6. abstract def numDimensions: Int

    Definition Classes
    Tensor

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def *(v: Double): Tensor

    Definition Classes
    Tensor
  5. def *=(ds: DoubleSeq): Unit

    Definition Classes
    MutableDoubleSeq
  6. def *=(d: Double): Unit

    Definition Classes
    MutableDoubleSeq
  7. def *=(i: Int, incr: Double): Unit

    Definition Classes
    MutableDoubleSeq
  8. def +(that: Tensor): Tensor

    Definition Classes
    Tensor
  9. def ++=(is: Iterable[Int]): Unit

  10. def ++=(is: Array[Int]): Unit

  11. def ++=(tensors: Iterable[Tensor]): ArraySparseBinaryTensor.this.type

    Definition Classes
    Tensor
  12. def +=(i: Int, v: Double): Unit

    In SparseBinary, this is equivalent to update(i,v)

    In SparseBinary, this is equivalent to update(i,v)

    Definition Classes
    ArraySparseBinaryTensorTensorMutableDoubleSeqIncrementableDoubleSeq
  13. def +=(i: Int): Unit

  14. def +=(ds: DoubleSeq, factor: DoubleSeq): Unit

    Increment by the element-wise product of ds and factor.

    Increment by the element-wise product of ds and factor.

    Definition Classes
    IncrementableDoubleSeq
  15. def +=(a: Array[Double], factor: Double): Unit

    Definition Classes
    IncrementableDoubleSeq
  16. def +=(ds: DoubleSeq, factor: Double): Unit

    Definition Classes
    IncrementableDoubleSeq
  17. def +=(a: Array[Double]): Unit

    Definition Classes
    IncrementableDoubleSeq
  18. final def +=(ds: DoubleSeq): Unit

    Definition Classes
    IncrementableDoubleSeq
  19. def +=(d: Double): Unit

    Definition Classes
    IncrementableDoubleSeq
  20. def -(that: Tensor): Tensor

    Definition Classes
    Tensor
  21. def -=(i: Int): Unit

  22. def -=(ds: DoubleSeq): Unit

    Definition Classes
    IncrementableDoubleSeq
  23. final def -=(d: Double): Unit

    Definition Classes
    IncrementableDoubleSeq
  24. def -=(i: Int, incr: Double): Unit

    Definition Classes
    IncrementableDoubleSeq
  25. def /(v: Double): Tensor

    Definition Classes
    Tensor
  26. def /=(ds: DoubleSeq): Unit

    Definition Classes
    MutableDoubleSeq
  27. final def /=(d: Double): Unit

    Definition Classes
    MutableDoubleSeq
  28. final def /=(i: Int, incr: Double): Unit

    Definition Classes
    MutableDoubleSeq
  29. def :=(a: Array[Double], offset: Int): Unit

    Definition Classes
    MutableDoubleSeq
  30. def :=(a: Array[Double]): Unit

    Definition Classes
    MutableDoubleSeq
  31. def :=(ds: DoubleSeq): Unit

    Definition Classes
    MutableDoubleSeq
  32. def :=(d: Double): Unit

    Definition Classes
    MutableDoubleSeq
  33. def =+(a: Array[Double], offset: Int, f: Double): Unit

    Increment given array (starting at offset index) with contents of this DoubleSeq, multiplied by factor f.

    Increment given array (starting at offset index) with contents of this DoubleSeq, multiplied by factor f.

    Definition Classes
    ArraySparseBinaryTensorSparseDoubleSeqDoubleSeq
  34. final def =+(a: Array[Double], f: Double): Unit

    Definition Classes
    DoubleSeq
  35. final def =+(a: Array[Double], offset: Int): Unit

    Definition Classes
    DoubleSeq
  36. final def =+(a: Array[Double]): Unit

    Definition Classes
    DoubleSeq
  37. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  38. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  39. final def _append(elem: Int): ArraySparseBinaryTensor.this.type

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
    Annotations
    @inline()
  40. def _appendAll(elts: TraversableOnce[Int]): Unit

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  41. def _appendAll(elts: Array[Int]): Unit

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  42. def _appendUnsafe(i: Int): ArraySparseBinaryTensor

  43. final def _apply(index: Int): Int

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
    Annotations
    @inline()
  44. def _array: Array[Int]

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  45. final def _asArray: Array[Int]

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
    Annotations
    @inline()
  46. def _asIntSeq: IntSeq

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  47. def _asSeq: IndexedSeq[Int]

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  48. def _capacityGrowthFactor: Double

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  49. def _clear(): Unit

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  50. def _considerShrinkingCapacity(): Unit

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  51. def _containsSorted(x: Int): Boolean

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  52. def _copyToArray(a: Array[Int]): Unit

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  53. final def _ensureCapacity(cap: Int): Unit

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
    Annotations
    @inline()
  54. def _fill(elt: Int): Unit

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  55. def _foreach[U](f: (Int) ⇒ U): Unit

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  56. final def _increment(index: Int, incr: Int): Unit

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
    Annotations
    @inline()
  57. def _indexForInsertSorted(i: Int): Int

    Return the index at which value i should be inserted in order to maintain sorted order.

    Return the index at which value i should be inserted in order to maintain sorted order. This assumes that the existing elements already already sorted. If value i is already present, return its index.

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  58. def _indexForInsertSortedLinear(i: Int): Int

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  59. def _indexOf(i: Int): Int

    Return the index containing the value i, or -1 if i is not found.

    Return the index containing the value i, or -1 if i is not found.

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  60. def _indexOfSorted(i: Int): Int

    Return the index containing the value i, or -1 if i is not found.

    Return the index containing the value i, or -1 if i is not found. Do so more efficiently by assuming that the contents are sorted in ascending order. Look by starting near the last index as which a search was successful.

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  61. def _indices: Array[Int]

    Efficient (but dangerous) direct access to underlying array of indices.

    Efficient (but dangerous) direct access to underlying array of indices. Note that the array.length may be larger than the number of indices.

    Definition Classes
    ArraySparseBinaryTensorSparseTensor
  62. def _initialCapacity: Int

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  63. def _insert(index: Int, elt: Int): Unit

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  64. def _insertAll(index: Int, seq: Traversable[Int]): Unit

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  65. def _insertAllSorted(seq: Traversable[Int]): Unit

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  66. def _insertSorted(elt: Int): Unit

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  67. def _insertSortedNoDuplicates(elt: Int): Unit

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  68. final def _length: Int

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
    Annotations
    @inline()
  69. def _makeReadable(): Unit

    Definition Classes
    ArraySparseBinaryTensorSparseTensor
  70. def _mapToArray[A](a: Array[A], f: (Int) ⇒ A): Unit

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  71. def _prepend(elt: Int): Unit

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  72. def _prependAll(elts: TraversableOnce[Int]): Unit

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  73. def _reduceToSize(newSize: Int): Unit

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  74. def _remove(index: Int): Unit

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  75. def _remove(index: Int, count: Int): Unit

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  76. def _set(elts: Seq[Int]): Unit

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  77. def _set(elts: Array[Int]): Unit

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  78. final def _setCapacity(cap: Int): Unit

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
    Annotations
    @inline()
  79. def _sizeHint(len: Int): Unit

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  80. def _sum: Int

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  81. def _takeAsIntSeq(len: Int): IntSeq

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  82. def _toArray: Array[Int]

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  83. def _toSeq: IndexedSeq[Int]

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  84. def _trimCapacity(): Unit

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  85. def _unsafeActiveDomainSize: Int

    Definition Classes
    ArraySparseBinaryTensorSparseTensor
  86. final def _update(index: Int, value: Int): Unit

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
    Annotations
    @inline()
  87. def _valuesSeq: DoubleSeq

    Definition Classes
    SparseBinaryTensorSparseTensor
  88. def abs(): Unit

    Definition Classes
    MutableDoubleSeq
  89. def activeDomain: TruncatedArrayIntSeq

  90. def activeDomainSize: Int

  91. def activeElements: Iterator[(Int, Double)]

    Definition Classes
    ArraySparseBinaryTensorTensor
  92. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Append a string representation of this DoubleSeq to the StringBuilder.

    Append a string representation of this DoubleSeq to the StringBuilder.

    Definition Classes
    DoubleSeq
  93. final def apply(index: Int): Double

    Definition Classes
    ArraySparseBinaryTensorDoubleSeq
    Annotations
    @inline()
  94. def asArray: Array[Double]

    Return the values as an Array[Double].

    Return the values as an Array[Double]. Not guaranteed to be a copy; in fact if it is possible to return a pointer to an internal array, it will simply return this.

    Definition Classes
    DoubleSeq
  95. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  96. def asSeq: Seq[Double]

    With uncopied contents

    With uncopied contents

    Definition Classes
    DoubleSeq
  97. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  98. final def contains(index: Int): Boolean

    Annotations
    @inline()
  99. def contains(d: Double): Boolean

    Definition Classes
    SparseDoubleSeqDoubleSeq
  100. def containsNaN: Boolean

  101. def cosineSimilarity(t: DoubleSeq): Double

    Definition Classes
    Tensor
  102. def defaultValue: Double

    The default value at indices not covered by activeDomain.

    The default value at indices not covered by activeDomain. Subclasses may override this

    Definition Classes
    Tensor
  103. def different(t: DoubleSeq, threshold: Double): Boolean

    Definition Classes
    SparseDoubleSeqDoubleSeq
  104. def dimensionsMatch(t: Tensor): Boolean

    Definition Classes
    Tensor
  105. def dot(v: DoubleSeq): Double

    Definition Classes
    ArraySparseBinaryTensorTensor
  106. def ensureDimensionsMatch(t: Tensor): Unit

    Definition Classes
    Tensor
  107. def entropy: Double

    Assumes that the values are already normalized to sum to 1.

    Assumes that the values are already normalized to sum to 1.

    Definition Classes
    SparseDoubleSeqDoubleSeq
  108. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  110. def exists(f: (Double) ⇒ Boolean): Boolean

    Definition Classes
    Tensor
  111. def expNormalize(logZ: Double): Unit

    Exponential the elements of the array such that they are normalized to sum to one, but do so efficiently by providing logZ.

    Exponential the elements of the array such that they are normalized to sum to one, but do so efficiently by providing logZ. Note that to maximize efficiency, this method does not verify that the logZ value was the correct one to cause proper normalization.

    Definition Classes
    MutableDoubleSeq
  112. def expNormalize(): Double

    Exponentiate the elements of the array, and then normalize them to sum to one.

    Exponentiate the elements of the array, and then normalize them to sum to one.

    Definition Classes
    MutableDoubleSeq
  113. def expNormalized: Tensor

    Definition Classes
    Tensor
  114. def exponentiate(): Unit

    Definition Classes
    MutableDoubleSeq
  115. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  116. def foldActiveElements(seed: Double, f: (Int, Double, Double) ⇒ Double): Double

    Definition Classes
    ArraySparseBinaryTensorTensor
  117. def foldLeft[B](z: B)(f: (B, Double) ⇒ B): B

    Definition Classes
    DoubleSeq
  118. def forall(f: (Double) ⇒ Boolean): Boolean

    Definition Classes
    DoubleSeq
  119. def forallActiveElements(f: (Int, Double) ⇒ Boolean): Boolean

    Definition Classes
    SparseDoubleSeq
  120. def forallElements(f: (Int, Double) ⇒ Boolean): Boolean

    Definition Classes
    DoubleSeq
  121. def foreach(f: (Double) ⇒ Unit): Unit

    Definition Classes
    DoubleSeq
  122. def foreachActiveElement(f: (Int, Double) ⇒ Unit): Unit

    Definition Classes
    ArraySparseBinaryTensorDoubleSeq
  123. def foreachElement(f: (Int, Double) ⇒ Unit): Unit

    Definition Classes
    DoubleSeq
  124. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  126. def indexOf(d: Double): Int

  127. def infinityNorm: Double

    Definition Classes
    SparseDoubleSeqDoubleSeq
  128. def isDense: Boolean

    Definition Classes
    SparseTensorTensor
  129. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  130. def isUniform: Boolean

    Definition Classes
    Tensor
  131. def jsDivergence(p: DoubleSeq): Double

    Assumes that the values are already normalized to sum to 1.

    Assumes that the values are already normalized to sum to 1.

    Definition Classes
    SparseDoubleSeqDoubleSeq
  132. def klDivergence(p: DoubleSeq): Double

    Assumes that the values in both DoubleSeq are already normalized to sum to 1.

    Assumes that the values in both DoubleSeq are already normalized to sum to 1.

    Definition Classes
    SparseDoubleSeqDoubleSeq
  133. def l2Similarity(t: DoubleSeq): Double

    Definition Classes
    DoubleSeq
  134. def map(f: (Double) ⇒ Double): DoubleSeq

    Definition Classes
    DoubleSeq
  135. def max: Double

  136. def maxIndex: Int

  137. def maxIndex2: (Int, Int)

    Definition Classes
    SparseDoubleSeqDoubleSeq
  138. def maxNormalize(): Unit

    Definition Classes
    MutableDoubleSeq
  139. def min: Double

  140. def mkString: String

    Definition Classes
    DoubleSeq
  141. def mkString(sep: String): String

    Definition Classes
    DoubleSeq
  142. def mkString(start: String, sep: String, end: String): String

    Definition Classes
    DoubleSeq
  143. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  144. def normalize(): Double

    Definition Classes
    MutableDoubleSeq
  145. def normalizeLogProb(): Double

    expNormalize, then put back into log-space.

    expNormalize, then put back into log-space.

    Definition Classes
    MutableDoubleSeq
  146. def normalized: Tensor

    Definition Classes
    Tensor
  147. final def notify(): Unit

    Definition Classes
    AnyRef
  148. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  149. def oneNorm: Double

    Definition Classes
    SparseDoubleSeqDoubleSeq
  150. def oneNormalize(): Double

    Definition Classes
    MutableDoubleSeq
  151. def outer(t: Tensor): Tensor

    Definition Classes
    Tensor
  152. def printLength: Int

    Definition Classes
    Tensor
  153. def sampleIndex(normalizer: Double)(implicit r: Random): Int

    Definition Classes
    SparseDoubleSeqDoubleSeq
  154. def sampleIndex(implicit r: Random): Int

    Careful, for many subclasses this is inefficient because it calls the method "sum" to get the normalizer.

    Careful, for many subclasses this is inefficient because it calls the method "sum" to get the normalizer.

    Definition Classes
    DoubleSeq
  155. final def size: Int

    Definition Classes
    DoubleSeq
  156. def sizeHint(size: Int): Unit

    Definition Classes
    ArraySparseBinaryTensorSparseTensor
  157. def stringPrefix: String

    Definition Classes
    Tensor
  158. def substitute(oldValue: Double, newValue: Double): Unit

    Definition Classes
    MutableDoubleSeq
  159. def sum: Double

  160. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  161. def toArray: Array[Double]

    Return the values as an Array[Double].

    Return the values as an Array[Double]. Guaranteed to be a copy, not just a pointer to an internal array that would change with changes to the DoubleSeq

    Definition Classes
    SparseDoubleSeqDoubleSeq
  162. def toIntArray: Array[Int]

  163. def toSeq: Seq[Double]

    With copied contents

    With copied contents

    Definition Classes
    DoubleSeq
  164. def toString(): String

    Definition Classes
    Tensor → AnyRef → Any
  165. def top(n: Int): TopN[String]

    Return records for the n elements with the largest values.

    Return records for the n elements with the largest values.

    Definition Classes
    DoubleSeq
  166. final def twoNorm: Double

    Definition Classes
    DoubleSeq
  167. def twoNormSquared: Double

    Definition Classes
    SparseDoubleSeqDoubleSeq
  168. def twoNormalize(): Double

    Definition Classes
    MutableDoubleSeq
  169. def twoSquaredNormalize(): Double

    Definition Classes
    MutableDoubleSeq
  170. def update(i: Int, v: Double): Unit

  171. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  174. def zero(): Unit

Inherited from ProtectedIntArrayBuffer

Inherited from SparseBinaryTensor

Inherited from SparseTensor

Inherited from Tensor

Inherited from Serializable

Inherited from Serializable

Inherited from MutableDoubleSeq

Inherited from IncrementableDoubleSeq

Inherited from SparseDoubleSeq

Inherited from DoubleSeq

Inherited from AnyRef

Inherited from Any

Ungrouped