LostTech.TensorFlow : API Documentation

Type FillTriangular

Namespace tensorflow.contrib.distributions.bijectors

Parent Bijector

Interfaces IFillTriangular

Transforms vectors to triangular.

Triangular matrix elements are filled in a clockwise spiral.

Given input with shape `batch_shape + [d]`, produces output with shape `batch_shape + [n, n]`, where `n = (-1 + sqrt(1 + 8 * d))/2`. This follows by solving the quadratic equation `d = 1 + 2 +... + n = n * (n + 1)/2`.

#### Example
Show Example
b = tfb.FillTriangular(upper=False)
            b.forward([1, 2, 3, 4, 5, 6])
            # ==> [[4, 0, 0],
            #      [6, 5, 0],
            #      [3, 2, 1]] 

b = tfb.FillTriangular(upper=True) b.forward([1, 2, 3, 4, 5, 6]) # ==> [[1, 2, 3], # [0, 5, 6], # [0, 0, 4]]

Properties

Public properties

object dtype get;

object dtype_dyn get;

object forward_min_event_ndims get;

object forward_min_event_ndims_dyn get;

IList<object> graph_parents get;

object graph_parents_dyn get;

object inverse_min_event_ndims get;

object inverse_min_event_ndims_dyn get;

bool is_constant_jacobian get;

object is_constant_jacobian_dyn get;

object name get;

object name_dyn get;

object PythonObject get;

bool validate_args get;

object validate_args_dyn get;