Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
rasolca committed May 28, 2024
1 parent e3629fc commit 87dace2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions include/dlaf/util_matrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ void set(Matrix<T, Device::CPU>& matrix, ElementGetter el_f) {
using TileType = typename std::decay_t<decltype(matrix)>::TileType;
auto set_f = [tile_origin, el_f = el_f](const TileType& tile) {
for (auto ij_el_tl : iterate_range2d(tile.size())) {
GlobalElementIndex ij_el_gl(tile_origin.row() + ij_el_tl.row(), tile_origin.col() + ij_el_tl.col());
GlobalElementIndex ij_el_gl(tile_origin.row() + ij_el_tl.row(),
tile_origin.col() + ij_el_tl.col());
tile(ij_el_tl) = el_f(ij_el_gl);
}
};
Expand Down Expand Up @@ -431,8 +432,7 @@ void set_random_hermitian_with_offset(Matrix<T, Device::CPU>& matrix, const Size
if (ij_gl.row() == ij_gl.col())
internal::set_diagonal_tile(tile, random_value, offset_value);
else
internal::set_lower_and_upper_tile(tile, random_value, full_tile_size, ij_gl, dist,
band_size);
internal::set_lower_and_upper_tile(tile, random_value, full_tile_size, ij_gl, dist, band_size);
};

dlaf::internal::transformDetach(dlaf::internal::Policy<Backend::MC>(thread_stacksize::nostack),
Expand Down
4 changes: 2 additions & 2 deletions miniapp/miniapp_triangular_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ using dlaf::DefaultDevice_v;
using dlaf::Device;
using dlaf::GlobalElementIndex;
using dlaf::GlobalElementSize;
using dlaf::matrix::Matrix;
using dlaf::matrix::MatrixMirror;
using dlaf::SizeType;
using dlaf::TileElementSize;
using dlaf::comm::Communicator;
using dlaf::comm::CommunicatorGrid;
using dlaf::common::Ordering;
using dlaf::matrix::Matrix;
using dlaf::matrix::MatrixMirror;

struct Options
: dlaf::miniapp::MiniappOptions<dlaf::miniapp::SupportReal::Yes, dlaf::miniapp::SupportComplex::Yes> {
Expand Down

0 comments on commit 87dace2

Please sign in to comment.