cc.factorie.la

SparseBinaryTensorLike2

trait SparseBinaryTensorLike2 extends Tensor2 with ArraySparseBinaryTensor

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

Abstract Value Members

  1. abstract def dim1: Int

    Definition Classes
    Tensor2
  2. abstract def dim2: Int

    Definition Classes
    Tensor2

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 *(t: Tensor1): Tensor1

    Definition Classes
    Tensor2
  5. def *(v: Double): Tensor

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

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

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

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

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

    Definition Classes
    ArraySparseBinaryTensor
  11. def ++=(is: Array[Int]): Unit

    Definition Classes
    ArraySparseBinaryTensor
  12. def ++=(tensors: Iterable[Tensor]): SparseBinaryTensorLike2.this.type

    Definition Classes
    Tensor
  13. def +=(i: Int, j: Int): Unit

  14. 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
  15. def +=(i: Int): Unit

    Definition Classes
    ArraySparseBinaryTensor
  16. def +=(i: Int, j: Int, v: Double): Unit

    Definition Classes
    Tensor2
  17. 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
  18. def +=(a: Array[Double], factor: Double): Unit

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

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

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

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

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

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

    Definition Classes
    ArraySparseBinaryTensor
  25. def -=(ds: DoubleSeq): Unit

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    MutableDoubleSeq
  36. 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
  37. final def =+(a: Array[Double], f: Double): Unit

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

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

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

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

    Definition Classes
    Any
  42. final def _append(elem: Int): SparseBinaryTensorLike2.this.type

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

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

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

    Definition Classes
    ArraySparseBinaryTensor
  46. final def _apply(index: Int): Int

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

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

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

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

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  51. def _capacityGrowthFactor: Double

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

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

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

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
    Annotations
    @inline()
  60. 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
  61. def _indexForInsertSortedLinear(i: Int): Int

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  62. 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
  63. 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
  64. 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
  65. def _initialCapacity: Int

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  83. def _sum: Int

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

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

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

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

    Attributes
    protected
    Definition Classes
    ProtectedIntArrayBuffer
  88. def _unsafeActiveDomainSize: Int

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

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

    Definition Classes
    SparseBinaryTensorSparseTensor
  91. def abs(): Unit

    Definition Classes
    MutableDoubleSeq
  92. def activeDomain: TruncatedArrayIntSeq

  93. def activeDomain1: Nothing

    Definition Classes
    SparseBinaryTensorLike2Tensor2
  94. def activeDomain2: Nothing

    Definition Classes
    SparseBinaryTensorLike2Tensor2
  95. def activeDomainSize: Int

  96. def activeDomains: Array[IntSeq]

    Definition Classes
    Tensor2Tensor
  97. def activeElements: Iterator[(Int, Double)]

    Definition Classes
    ArraySparseBinaryTensorTensor
  98. def activeElements2: Tensor2ElementIterator

  99. 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
  100. final def apply(index: Int): Double

    Definition Classes
    ArraySparseBinaryTensorDoubleSeq
    Annotations
    @inline()
  101. def apply(i: Int, j: Int): Double

    Definition Classes
    Tensor2
  102. 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
  103. final def asInstanceOf[T0]: T0

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

    With uncopied contents

    With uncopied contents

    Definition Classes
    DoubleSeq
  105. def blankCopy: Tensor2

    Definition Classes
    Tensor2Tensor
  106. def clone(): AnyRef

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

    Definition Classes
    ArraySparseBinaryTensor
    Annotations
    @inline()
  108. def contains(d: Double): Boolean

    Definition Classes
    SparseDoubleSeqDoubleSeq
  109. def containsNaN: Boolean

  110. def copy: Tensor2

    Definition Classes
    Tensor2Tensor
  111. def cosineSimilarity(t: DoubleSeq): Double

    Definition Classes
    Tensor
  112. 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
  113. def diag: Tensor1

    Definition Classes
    Tensor2
  114. def different(t: DoubleSeq, threshold: Double): Boolean

    Definition Classes
    SparseDoubleSeqDoubleSeq
  115. def dimensions: Array[Int]

    Definition Classes
    Tensor2Tensor
  116. def dimensionsMatch(t: Tensor): Boolean

    Definition Classes
    Tensor2Tensor
  117. def dot(v: DoubleSeq): Double

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

    Definition Classes
    Tensor2Tensor
  119. 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
  120. final def eq(arg0: AnyRef): Boolean

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

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

    Definition Classes
    Tensor
  123. 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
  124. 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
  125. def expNormalized: Tensor

    Definition Classes
    Tensor
  126. def exponentiate(): Unit

    Definition Classes
    MutableDoubleSeq
  127. def finalize(): Unit

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef → Any
  138. final def index1(i: Int): Int

    Definition Classes
    Tensor2
    Annotations
    @inline()
  139. final def index2(i: Int): Int

    Definition Classes
    Tensor2
    Annotations
    @inline()
  140. def indexOf(d: Double): Int

  141. def infinityNorm: Double

    Definition Classes
    SparseDoubleSeqDoubleSeq
  142. def isDense: Boolean

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

    Definition Classes
    Any
  144. def isUniform: Boolean

    Definition Classes
    Tensor
  145. 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
  146. 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
  147. def l2Similarity(t: DoubleSeq): Double

    Definition Classes
    DoubleSeq
  148. def leftMultiply(t: Tensor1): Tensor1

    Definition Classes
    Tensor2
  149. final def length: Int

    Definition Classes
    Tensor2DoubleSeq
    Annotations
    @inline()
  150. def map(f: (Double) ⇒ Double): DoubleSeq

    Definition Classes
    DoubleSeq
  151. def max: Double

  152. def maxIndex: Int

  153. def maxIndex2: (Int, Int)

    Definition Classes
    SparseDoubleSeqDoubleSeq
  154. def maxNormalize(): Unit

    Definition Classes
    MutableDoubleSeq
  155. def min: Double

  156. def mkString: String

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

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

    Definition Classes
    DoubleSeq
  159. final def multiIndex(i: Int): (Int, Int)

    Definition Classes
    Tensor2
    Annotations
    @inline()
  160. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  161. def normalize(): Double

    Definition Classes
    MutableDoubleSeq
  162. def normalizeLogProb(): Double

    expNormalize, then put back into log-space.

    expNormalize, then put back into log-space.

    Definition Classes
    MutableDoubleSeq
  163. def normalized: Tensor

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

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

    Definition Classes
    AnyRef
  166. def numDimensions: Int

    Definition Classes
    Tensor2Tensor
  167. def oneNorm: Double

    Definition Classes
    SparseDoubleSeqDoubleSeq
  168. def oneNormalize(): Double

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

    Definition Classes
    Tensor
  170. def printLength: Int

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

    Definition Classes
    SparseDoubleSeqDoubleSeq
  172. 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
  173. final def singleIndex(i: Int, j: Int): Int

    Definition Classes
    Tensor2
    Annotations
    @inline()
  174. final def size: Int

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

    Definition Classes
    ArraySparseBinaryTensorSparseTensor
  176. def stringPrefix: String

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

    Definition Classes
    MutableDoubleSeq
  178. def sum: Double

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

    Definition Classes
    AnyRef
  180. 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
  181. def toIntArray: Array[Int]

    Definition Classes
    ArraySparseBinaryTensor
  182. def toSeq: Seq[Double]

    With copied contents

    With copied contents

    Definition Classes
    DoubleSeq
  183. def toString(): String

    Definition Classes
    Tensor → AnyRef → Any
  184. 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
  185. def trace: Double

    Definition Classes
    Tensor2
  186. final def twoNorm: Double

    Definition Classes
    DoubleSeq
  187. def twoNormSquared: Double

    Definition Classes
    SparseDoubleSeqDoubleSeq
  188. def twoNormalize(): Double

    Definition Classes
    MutableDoubleSeq
  189. def twoSquaredNormalize(): Double

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

  191. def update(i: Int, j: Int, v: Double): Unit

    Definition Classes
    Tensor2
  192. final def wait(): Unit

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

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

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

Inherited from ArraySparseBinaryTensor

Inherited from ProtectedIntArrayBuffer

Inherited from SparseBinaryTensor

Inherited from SparseTensor

Inherited from SparseDoubleSeq

Inherited from Tensor2

Inherited from Tensor

Inherited from Serializable

Inherited from Serializable

Inherited from MutableDoubleSeq

Inherited from IncrementableDoubleSeq

Inherited from DoubleSeq

Inherited from AnyRef

Inherited from Any

Ungrouped