Given a square matrix mat, return the sum of the matrix diagonals. Only include the sum of all the elements on the primary diagonal and all the elements on the secondary diagonal that are not part of ...
Now we define a new class called `Diag`, this class receive a container that can be the parameter of `std::data`, e.g `std::vector`, `std::initializer_list`. This class is for specify a diagonal ...