class Table extends Serializable with Activity
Simulate the Table data structure in lua
- Alphabetic
- By Inheritance
- Table
- Activity
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def add(other: Table): Table.this.type
- def apply[T](key: Any): T
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clear(): Table.this.type
Empty the Table
-
def
clone(): Table
- Definition Classes
- Table → AnyRef
- def contains(key: Any): Boolean
- def delete(obj: Any): Table.this.type
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(obj: Any): Boolean
- Definition Classes
- Table → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
flatten(): Table
Recursively flatten the table to a single table containing no nested table inside
Recursively flatten the table to a single table containing no nested table inside
- returns
the flatten table
- def foreach[U](f: ((Any, Any)) ⇒ U): Unit
- def get[T](key: Any): Option[T]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getOrElse[T](key: Any, default: T): T
-
def
hashCode(): Int
- Definition Classes
- Table → AnyRef → Any
- def insert[T](index: Int, obj: T): Table.this.type
- def insert[T](obj: T): Table.this.type
-
def
inverseFlatten(target: Table): Table
Recursively inverse flatten the flatten table to the same shape with target
Recursively inverse flatten the flatten table to the same shape with target
- target
the target shape to become
- returns
the inverse flatten the table with the same shape with target
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isTable: Boolean
Return true because it's a Table implemented from Activity
-
def
isTensor: Boolean
Return false because it's not a Tensor
- def keySet: Set[Any]
- def length(): Int
- def map[U](func: ((Any, Any)) ⇒ U): Iterable[U]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def remove[T](): Option[T]
- def remove[T](index: Int): Option[T]
- def save(path: String, overWrite: Boolean): Table.this.type
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toSeq[D]: Seq[D]
Return the elements of this table as a Seq.
Return the elements of this table as a Seq. This method assumes the key of this table are all the integers between 1 to this.length(), the values are all D
-
def
toString(): String
- Definition Classes
- Table → AnyRef → Any
- def toTable: Table
- def toTensor[D](implicit ev: TensorNumeric[D]): Tensor[D]
- def update(key: Any, value: Any): Table.this.type
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )