tf.contrib.distributions.tridiag(
below=None,
diag=None,
above=None,
name=None
)
Defined in tensorflow/python/ops/distributions/util.py.
Creates a matrix with values set above, below, and on the diagonal.
Example:
tridiag(below=[1., 2., 3.],
diag=[4., 5., 6., 7.],
above=[8., 9., 10.])
# ==> array([[ 4., 8., 0., 0.],
# [ 1., 5., 9., 0.],
# [ 0., 2., 6., 10.],
# [ 0., 0., 3., 7.]], dtype=float32)
Args:
below:Tensorof shape[B1, ..., Bb, d-1]corresponding to the below diagonal part.Noneis logically equivalent tobelow = 0.diag:Tensorof shape[B1, ..., Bb, d]corresponding to the diagonal part.Noneis logically equivalent todiag = 0.above:Tensorof shape[B1, ..., Bb, d-1]corresponding to the above diagonal part.Noneis logically equivalent toabove = 0.name: Pythonstr. The name to give this op.
Returns:
tridiag:Tensorwith values set above, below and on the diagonal.
Raises:
ValueError: if all inputs areNone.