Instance Constructors
-
new
TensorVariable(initialValue: T)
-
new
TensorVariable()
Type Members
-
-
case class
IncrementTensorIndexDiff(index: Int, incr: Double) extends Diff with Product with Serializable
-
-
case class
UpdateTensorDiff(index: Int, oldValue: Double, newValue: Double) extends Diff with Product with Serializable
-
type
Value = T
-
case class
ZeroTensorDiff(prev: Array[Double]) extends Diff with Product with Serializable
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
def
!==(other: Var): Boolean
-
final
def
##(): Int
-
final
def
:=(newValue: Value): Unit
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
def
===(other: Var): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
def
increment(incr: Tensor)(implicit d: DiffList): Unit
-
def
increment(index: Int, incr: Double)(implicit d: DiffList): Unit
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
printName: String
-
def
set(newValue: Value)(implicit d: DiffList): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
def
update(index: Int, newValue: Double)(implicit d: DiffList): Unit
-
final
def
value: Value
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
zero(implicit d: DiffList): Unit
A variable whose value is a cc.factorie.la.Tensor.
The zero-arg constructor should only be used by subclasses (e.g. so that CategoricalVariable can use its domain for value lookup), and should never be called by users; otherwise the value will be null.