Skip to content
Snippets Groups Projects
Commit c1acfe66 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[MaL] Constify ctor args, format docu.

parent 367109c1
No related branches found
No related tags found
No related merge requests found
...@@ -34,12 +34,12 @@ public: ...@@ -34,12 +34,12 @@ public:
// TODO The matrix constructor should take num_rows and num_cols as // TODO The matrix constructor should take num_rows and num_cols as
// arguments // arguments
// that is left for a later refactoring. // that is left for a later refactoring.
/**
* constructor /// @param n the number of rows (that is equal to the number of columns).
* @param n the number of rows (that is equal to the number of columns) /// @param n_nonzero_columns the number of non-zero columns used for
* @param n_nonzero_columns the number of non-zero columns used for preallocation /// preallocation.
*/ explicit EigenMatrix(IndexType const n,
explicit EigenMatrix(IndexType n, IndexType n_nonzero_columns = 0) IndexType const n_nonzero_columns = 0)
: mat_(n, n) : mat_(n, n)
{ {
if (n_nonzero_columns > 0) if (n_nonzero_columns > 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment