Skip to content

Commit

Permalink
Add a description to the vector class
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasChollet committed Oct 10, 2021
1 parent d0fca30 commit bc5a395
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/cotila/vector/vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ struct matrix;
template <typename T, std::size_t N, typename Container>
constexpr matrix<T, N, 1> from_initializer(Container &);

/** @brief A container representing a vector
* @tparam T scalar type to contain
* @tparam N number of rows
*
* `cotila::vector` is a container representing a vector.
* It inherits all its properties from `̀cotila::matrix`.
*/
template <typename T, std::size_t N>
struct vector : public matrix<T, N, 1> {
constexpr vector() = default;
Expand Down

0 comments on commit bc5a395

Please sign in to comment.