com.intel.analytics.bigdl.tensor

Storage

trait Storage[T] extends Iterable[T] with Serializable

Storage defines a simple storage interface that controls the underlying storage for any tensor object.

Linear Supertypes
Serializable, Serializable, Iterable[T], IterableLike[T, Iterable[T]], Equals, GenIterable[T], GenIterableLike[T, Iterable[T]], Traversable[T], GenTraversable[T], GenericTraversableTemplate[T, Iterable], TraversableLike[T, Iterable[T]], GenTraversableLike[T, Iterable[T]], Parallelizable[T, ParIterable[T]], TraversableOnce[T], GenTraversableOnce[T], FilterMonadic[T, Iterable[T]], HasNewBuilder[T, Iterable[T]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Storage
  2. Serializable
  3. Serializable
  4. Iterable
  5. IterableLike
  6. Equals
  7. GenIterable
  8. GenIterableLike
  9. Traversable
  10. GenTraversable
  11. GenericTraversableTemplate
  12. TraversableLike
  13. GenTraversableLike
  14. Parallelizable
  15. TraversableOnce
  16. GenTraversableOnce
  17. FilterMonadic
  18. HasNewBuilder
  19. AnyRef
  20. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type Self = Iterable[T]

    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  2. class WithFilter extends FilterMonadic[A, Repr]

    Definition Classes
    TraversableLike

Abstract Value Members

  1. abstract def apply(index: Int): T

    Returns the element at position index in the storage.

    Returns the element at position index in the storage. Valid range of index is 0 to length() -1

    index
    returns

  2. abstract def array(): Array[T]

    Convert the storage to an array

    Convert the storage to an array

    returns

  3. abstract def copy(source: Storage[T], offset: Int, sourceOffset: Int, length: Int): Storage.this.type

    Copy another storage.

    Copy another storage. The types of the two storages might be different: in that case a conversion of types occur (which might result, of course, in loss of precision or rounding). This method returns itself.

    source
    returns

  4. abstract def fill(value: T, offset: Int, length: Int): Storage.this.type

    Fill the Storage with the given value.

    Fill the Storage with the given value. This method returns itself.

    value
    offset

    offset start from 1

    length

    length of fill part

    returns

  5. abstract def iterator: Iterator[T]

    Definition Classes
    IterableLike → GenIterableLike
  6. abstract def length(): Int

    Returns the number of elements in the storage.

    Returns the number of elements in the storage. The original method name in torch is size, which is conflict with Iterable

    returns

  7. abstract def resize(size: Long): Storage.this.type

    Resize the storage to the provided size.

    Resize the storage to the provided size. The new contents are undetermined. This function returns itself

    size
    returns

  8. abstract def set(other: Storage[T]): Storage.this.type

    Share the same underlying storage

    Share the same underlying storage

    other
    returns

  9. abstract def update(index: Int, value: T): Unit

    Set the element at position index in the storage.

    Set the element at position index in the storage. Valid range of index is 1 to length()

    index
    value

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 ++[B >: T, That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[T], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  5. def ++:[B >: T, That](that: Traversable[B])(implicit bf: CanBuildFrom[Iterable[T], B, That]): That

    Definition Classes
    TraversableLike
  6. def ++:[B >: T, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[T], B, That]): That

    Definition Classes
    TraversableLike
  7. def /:[B](z: B)(op: (B, T) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  8. def :\[B](z: B)(op: (T, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  9. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  11. def addString(b: StringBuilder): StringBuilder

    Definition Classes
    TraversableOnce
  12. def addString(b: StringBuilder, sep: String): StringBuilder

    Definition Classes
    TraversableOnce
  13. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Definition Classes
    TraversableOnce
  14. def aggregate[B](z: B)(seqop: (B, T) ⇒ B, combop: (B, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  15. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  16. def canEqual(that: Any): Boolean

    Definition Classes
    IterableLike → Equals
  17. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. def collect[B, That](pf: PartialFunction[T, B])(implicit bf: CanBuildFrom[Iterable[T], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  19. def collectFirst[B](pf: PartialFunction[T, B]): Option[B]

    Definition Classes
    TraversableOnce
  20. def companion: GenericCompanion[Iterable]

    Definition Classes
    Iterable → GenIterable → Traversable → GenTraversable → GenericTraversableTemplate
  21. def copy(source: Storage[T]): Storage.this.type

  22. def copyToArray[B >: T](xs: Array[B], start: Int, len: Int): Unit

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  23. def copyToArray[B >: T](xs: Array[B]): Unit

    Definition Classes
    TraversableOnce → GenTraversableOnce
  24. def copyToArray[B >: T](xs: Array[B], start: Int): Unit

    Definition Classes
    TraversableOnce → GenTraversableOnce
  25. def copyToBuffer[B >: T](dest: Buffer[B]): Unit

    Definition Classes
    TraversableOnce
  26. def count(p: (T) ⇒ Boolean): Int

    Definition Classes
    TraversableOnce → GenTraversableOnce
  27. def drop(n: Int): Iterable[T]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  28. def dropRight(n: Int): Iterable[T]

    Definition Classes
    IterableLike
  29. def dropWhile(p: (T) ⇒ Boolean): Iterable[T]

    Definition Classes
    TraversableLike → GenTraversableLike
  30. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  32. def exists(p: (T) ⇒ Boolean): Boolean

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  33. def filter(p: (T) ⇒ Boolean): Iterable[T]

    Definition Classes
    TraversableLike → GenTraversableLike
  34. def filterNot(p: (T) ⇒ Boolean): Iterable[T]

    Definition Classes
    TraversableLike → GenTraversableLike
  35. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  36. def find(p: (T) ⇒ Boolean): Option[T]

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  37. def flatMap[B, That](f: (T) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[T], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  38. def flatten[B](implicit asTraversable: (T) ⇒ GenTraversableOnce[B]): Iterable[B]

    Definition Classes
    GenericTraversableTemplate
  39. def fold[A1 >: T](z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    TraversableOnce → GenTraversableOnce
  40. def foldLeft[B](z: B)(op: (B, T) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  41. def foldRight[B](z: B)(op: (T, B) ⇒ B): B

    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  42. def forall(p: (T) ⇒ Boolean): Boolean

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  43. def foreach[U](f: (T) ⇒ U): Unit

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  44. def genericBuilder[B]: Builder[B, Iterable[B]]

    Definition Classes
    GenericTraversableTemplate
  45. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  46. def groupBy[K](f: (T) ⇒ K): Map[K, Iterable[T]]

    Definition Classes
    TraversableLike → GenTraversableLike
  47. def grouped(size: Int): Iterator[Iterable[T]]

    Definition Classes
    IterableLike
  48. def hasDefiniteSize: Boolean

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  49. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  50. def head: T

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  51. def headOption: Option[T]

    Definition Classes
    TraversableLike → GenTraversableLike
  52. def init: Iterable[T]

    Definition Classes
    TraversableLike → GenTraversableLike
  53. def inits: Iterator[Iterable[T]]

    Definition Classes
    TraversableLike
  54. def isEmpty: Boolean

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  55. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  56. final def isTraversableAgain: Boolean

    Definition Classes
    TraversableLike → GenTraversableLike → GenTraversableOnce
  57. def last: T

    Definition Classes
    TraversableLike → GenTraversableLike
  58. def lastOption: Option[T]

    Definition Classes
    TraversableLike → GenTraversableLike
  59. def map[B, That](f: (T) ⇒ B)(implicit bf: CanBuildFrom[Iterable[T], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  60. def max[B >: T](implicit cmp: Ordering[B]): T

    Definition Classes
    TraversableOnce → GenTraversableOnce
  61. def maxBy[B](f: (T) ⇒ B)(implicit cmp: Ordering[B]): T

    Definition Classes
    TraversableOnce → GenTraversableOnce
  62. def min[B >: T](implicit cmp: Ordering[B]): T

    Definition Classes
    TraversableOnce → GenTraversableOnce
  63. def minBy[B](f: (T) ⇒ B)(implicit cmp: Ordering[B]): T

    Definition Classes
    TraversableOnce → GenTraversableOnce
  64. def mkString: String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  65. def mkString(sep: String): String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  66. def mkString(start: String, sep: String, end: String): String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  67. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  68. def newBuilder: Builder[T, Iterable[T]]

    Attributes
    protected[this]
    Definition Classes
    GenericTraversableTemplate → HasNewBuilder
  69. def nonEmpty: Boolean

    Definition Classes
    TraversableOnce → GenTraversableOnce
  70. final def notify(): Unit

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

    Definition Classes
    AnyRef
  72. def par: ParIterable[T]

    Definition Classes
    Parallelizable
  73. def parCombiner: Combiner[T, ParIterable[T]]

    Attributes
    protected[this]
    Definition Classes
    TraversableLike → Parallelizable
  74. def partition(p: (T) ⇒ Boolean): (Iterable[T], Iterable[T])

    Definition Classes
    TraversableLike → GenTraversableLike
  75. def product[B >: T](implicit num: Numeric[B]): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  76. def reduce[A1 >: T](op: (A1, A1) ⇒ A1): A1

    Definition Classes
    TraversableOnce → GenTraversableOnce
  77. def reduceLeft[B >: T](op: (B, T) ⇒ B): B

    Definition Classes
    TraversableOnce
  78. def reduceLeftOption[B >: T](op: (B, T) ⇒ B): Option[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  79. def reduceOption[A1 >: T](op: (A1, A1) ⇒ A1): Option[A1]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  80. def reduceRight[B >: T](op: (T, B) ⇒ B): B

    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  81. def reduceRightOption[B >: T](op: (T, B) ⇒ B): Option[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  82. def repr: Iterable[T]

    Definition Classes
    TraversableLike → GenTraversableLike
  83. def reversed: List[T]

    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  84. def sameElements[B >: T](that: GenIterable[B]): Boolean

    Definition Classes
    IterableLike → GenIterableLike
  85. def scan[B >: T, That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Iterable[T], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  86. def scanLeft[B, That](z: B)(op: (B, T) ⇒ B)(implicit bf: CanBuildFrom[Iterable[T], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  87. def scanRight[B, That](z: B)(op: (T, B) ⇒ B)(implicit bf: CanBuildFrom[Iterable[T], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) The behavior of scanRight has changed. The previous behavior can be reproduced with scanRight.reverse.

  88. def seq: Iterable[T]

    Definition Classes
    Iterable → GenIterable → Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
  89. def size: Int

    Returns the number of elements in the storage.

    Returns the number of elements in the storage. Override size in Iterable, which will cause some full gc and performance issues.

    returns

    Definition Classes
    Storage → GenTraversableLike → TraversableOnce → GenTraversableOnce
  90. def slice(from: Int, until: Int): Iterable[T]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  91. def sliding(size: Int, step: Int): Iterator[Iterable[T]]

    Definition Classes
    IterableLike
  92. def sliding(size: Int): Iterator[Iterable[T]]

    Definition Classes
    IterableLike
  93. def span(p: (T) ⇒ Boolean): (Iterable[T], Iterable[T])

    Definition Classes
    TraversableLike → GenTraversableLike
  94. def splitAt(n: Int): (Iterable[T], Iterable[T])

    Definition Classes
    TraversableLike → GenTraversableLike
  95. def stringPrefix: String

    Definition Classes
    TraversableLike → GenTraversableLike
  96. def sum[B >: T](implicit num: Numeric[B]): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  97. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  98. def tail: Iterable[T]

    Definition Classes
    TraversableLike → GenTraversableLike
  99. def tails: Iterator[Iterable[T]]

    Definition Classes
    TraversableLike
  100. def take(n: Int): Iterable[T]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  101. def takeRight(n: Int): Iterable[T]

    Definition Classes
    IterableLike
  102. def takeWhile(p: (T) ⇒ Boolean): Iterable[T]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  103. def thisCollection: Iterable[T]

    Attributes
    protected[this]
    Definition Classes
    IterableLike → TraversableLike
  104. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, T, Col[T]]): Col[T]

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  105. def toArray[B >: T](implicit arg0: ClassTag[B]): Array[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  106. def toBuffer[B >: T]: Buffer[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  107. def toCollection(repr: Iterable[T]): Iterable[T]

    Attributes
    protected[this]
    Definition Classes
    IterableLike → TraversableLike
  108. def toIndexedSeq: IndexedSeq[T]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  109. def toIterable: Iterable[T]

    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  110. def toIterator: Iterator[T]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
  111. def toList: List[T]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  112. def toMap[T, U](implicit ev: <:<[T, (T, U)]): Map[T, U]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  113. def toSeq: Seq[T]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  114. def toSet[B >: T]: Set[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  115. def toStream: Stream[T]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
  116. def toString(): String

    Definition Classes
    TraversableLike → Any
  117. def toTraversable: Traversable[T]

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  118. def toVector: Vector[T]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  119. def transpose[B](implicit asTraversable: (T) ⇒ GenTraversableOnce[B]): Iterable[Iterable[B]]

    Definition Classes
    GenericTraversableTemplate
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) transpose throws an IllegalArgumentException if collections are not uniformly sized.

  120. def unzip[A1, A2](implicit asPair: (T) ⇒ (A1, A2)): (Iterable[A1], Iterable[A2])

    Definition Classes
    GenericTraversableTemplate
  121. def unzip3[A1, A2, A3](implicit asTriple: (T) ⇒ (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])

    Definition Classes
    GenericTraversableTemplate
  122. def view(from: Int, until: Int): IterableView[T, Iterable[T]]

    Definition Classes
    IterableLike → TraversableLike
  123. def view: IterableView[T, Iterable[T]]

    Definition Classes
    IterableLike → TraversableLike
  124. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  127. def withFilter(p: (T) ⇒ Boolean): FilterMonadic[T, Iterable[T]]

    Definition Classes
    TraversableLike → FilterMonadic
  128. def zip[A1 >: T, B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[Iterable[T], (A1, B), That]): That

    Definition Classes
    IterableLike → GenIterableLike
  129. def zipAll[B, A1 >: T, That](that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Iterable[T], (A1, B), That]): That

    Definition Classes
    IterableLike → GenIterableLike
  130. def zipWithIndex[A1 >: T, That](implicit bf: CanBuildFrom[Iterable[T], (A1, Int), That]): That

    Definition Classes
    IterableLike → GenIterableLike

Deprecated Value Members

  1. def /:\[A1 >: T](z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    GenTraversableOnce
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) use fold instead

Inherited from Serializable

Inherited from Serializable

Inherited from Iterable[T]

Inherited from IterableLike[T, Iterable[T]]

Inherited from Equals

Inherited from GenIterable[T]

Inherited from GenIterableLike[T, Iterable[T]]

Inherited from Traversable[T]

Inherited from GenTraversable[T]

Inherited from GenericTraversableTemplate[T, Iterable]

Inherited from TraversableLike[T, Iterable[T]]

Inherited from GenTraversableLike[T, Iterable[T]]

Inherited from Parallelizable[T, ParIterable[T]]

Inherited from TraversableOnce[T]

Inherited from GenTraversableOnce[T]

Inherited from FilterMonadic[T, Iterable[T]]

Inherited from HasNewBuilder[T, Iterable[T]]

Inherited from AnyRef

Inherited from Any

Ungrouped