Skip to content
Snippets Groups Projects
Verified Commit fd9a89ab authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

MEX files: use default member initialization when possible

Automatically detected by clang-tidy with modernize-use-default-member-init
check.
parent 15b6e6e6
No related branches found
No related tags found
No related merge requests found
......@@ -582,15 +582,14 @@ protected:
// Orthogonal matrix Vᵀ
GeneralMatrix VT;
// Convered flag
bool conv;
bool conv {false};
public:
SVDDecomp(const GeneralMatrix& A) :
minmn(std::min<int>(A.nrows(), A.ncols())),
sigma(minmn),
U(A.nrows(), A.nrows()),
VT(A.ncols(), A.ncols()),
conv(false)
VT(A.ncols(), A.ncols())
{
construct(A);
}
......
......@@ -73,11 +73,10 @@ protected:
int nr;
int nc;
int first_nz_row;
int last_nz_row;
int last_nz_row {-1};
public:
SparseTensor(int d, int nnr, int nnc) :
dim(d), nr(nnr), nc(nnc), first_nz_row(nr), last_nz_row(-1)
SparseTensor(int d, int nnr, int nnc) : dim(d), nr(nnr), nc(nnc), first_nz_row(nr)
{
}
virtual ~SparseTensor() = default;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment