Initialization =============== zeros ----- - Create a tensor of zeros .. code-block:: cpp auto x = ten::zeros>({2, 3, 4}); auto y = ten::zeros>({10}); auto z = ten::zeros>({2, 3, 4}); constexpr size_t Rank = 3; auto t = ten::zeros({2, 3, 4}); - Create a static tensor of zeros .. code-block:: cpp auto x = ten::zeros>(); auto y = ten::zeros>(); ones ---- - Create a tensor of ones .. code-block:: cpp auto x = ten::ones>({2, 3, 4}); auto y = ten::ones>({10}); auto z = ten::ones>({2, 3, 4}); constexpr size_t Rank = 3; auto t = ten::ones({2, 3, 4}); - Create a static tensor of ones .. code-block:: cpp auto x = ten::ones>(); auto y = ten::ones>(); fill ----- - Create a tensor of filled with a single value .. code-block:: cpp auto x = ten::fill>({2, 3, 4}, 1.0f); auto y = ten::fill>({10}, 1.0f); auto z = ten::fill>({2, 3, 4}, 1.0f); constexpr size_t Rank = 3; auto t = ten::fill({2, 3, 4}, 1.0f); - Create a static tensor of filled with a single value .. code-block:: cpp auto x = ten::fill>(1.0f); auto y = ten::fill>(1.0f); range ----- - Create a range tensor .. code-block:: cpp auto x = ten::range>({2, 3, 4}); auto y = ten::range>({2, 3}); auto z = ten::range>({10}); constexpr size_t Rank = 3; auto z = ten::range({2, 3, 4}); - Create a static range tensor .. code-block:: cpp auto x = ten::range>(); auto y = ten::range>(); linear ------ - Create a linear tensor .. code-block:: cpp auto x = ten::linear>({2, 3, 4}, 0., 10.); auto y = ten::linear>({2, 3}, 0., 10.); auto z = ten::linear>({10}, 0., 10.); constexpr size_t Rank = 3; auto z = ten::range({2, 3, 4}, 0., 10.); - Create a static linear tensor .. code-block:: cpp auto x = ten::range>(0., 10.); auto y = ten::range>(0., 10.); TODO ---- - Logarithmic - Geometric