Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc committed Nov 11, 2024
1 parent 4a2f3b9 commit 8f51a89
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/source/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Static vector

.. code-block:: cpp
constexpr size_t size = 10;
constexpr size_t size = 5;
ten::svector<float, size> x;
ten::svector<float, size> y({0., 1., 2., 3., 4.});
Expand Down Expand Up @@ -93,39 +93,39 @@ Special matrices

.. code-block:: cpp
ten::matrix<float> x = ten::range<matrix<float>>({2, 3});
ten::matrix<float> x = ten::range<ten::matrix<float>>({2, 3});
auto y = ten::transposed(x);
std::cout << y.is_transposed() << std::endl;
- Symmetric

.. code-block:: cpp
ten::matrix<float> x = ten::range<matrix<float>>({2, 3});
ten::matrix<float> x = ten::range<ten::matrix<float>>({2, 3});
auto y = ten::symmetric(x);
std::cout << y.is_symmetric() << std::endl;
- Hermitian

.. code-block:: cpp
ten::matrix<float> x = ten::range<matrix<float>>({2, 3});
ten::matrix<float> x = ten::range<ten::matrix<float>>({2, 3});
auto y = ten::hermitian(x);
std::cout << y.is_hermitian() << std::endl;
- Lower triangular

.. code-block:: cpp
ten::matrix<float> x = ten::range<matrix<float>>({2, 3});
ten::matrix<float> x = ten::range<ten::matrix<float>>({2, 3});
auto y = ten::lower_tr(x);
std::cout << y.is_lower_tr() << std::endl;
- Upper triangular

.. code-block:: cpp
ten::matrix<float> x = ten::range<matrix<float>>({2, 3});
ten::matrix<float> x = ten::range<ten::matrix<float>>({2, 3});
auto y = ten::upper_tr(x);
std::cout << y.is_upper_tr() << std::endl;

0 comments on commit 8f51a89

Please sign in to comment.