Skip to content

Commit bf91b4f

Browse files
[pre-commit.ci] pre-commit autoupdate (#215)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/mirrors-clang-format: v16.0.1 → v16.0.2](pre-commit/mirrors-clang-format@v16.0.1...v16.0.2) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent bec2558 commit bf91b4f

File tree

8 files changed

+29
-28
lines changed

8 files changed

+29
-28
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ci:
22
autoupdate_branch: 'devel'
33
repos:
44
- repo: https://github.com/pre-commit/mirrors-clang-format
5-
rev: v16.0.1
5+
rev: v16.0.2
66
hooks:
77
- id: clang-format
88
args: ['--style={BasedOnStyle: Mozilla, SortIncludes: false}']

include/proxsuite/linalg/dense/core.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ temp_mat_req(proxsuite::linalg::veg::Tag<T> /*tag*/,
841841
isize cols) noexcept -> proxsuite::linalg::veg::dynstack::StackReq
842842
{
843843
return {
844-
_detail::adjusted_stride<T>(rows) * cols* isize{ sizeof(T) },
844+
_detail::adjusted_stride<T>(rows) * cols * isize{ sizeof(T) },
845845
_detail::align<T>(),
846846
};
847847
}
@@ -852,7 +852,7 @@ temp_vec_req(proxsuite::linalg::veg::Tag<T> /*tag*/, isize rows) noexcept
852852
-> proxsuite::linalg::veg::dynstack::StackReq
853853
{
854854
return {
855-
rows* isize{ sizeof(T) },
855+
rows * isize{ sizeof(T) },
856856
_detail::align<T>(),
857857
};
858858
}

include/proxsuite/linalg/dense/factorize.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ factorize_unblocked_req(proxsuite::linalg::veg::Tag<T> /*tag*/,
286286
-> proxsuite::linalg::veg::dynstack::StackReq
287287
{
288288
return {
289-
n* isize{ sizeof(T) },
289+
n * isize{ sizeof(T) },
290290
_detail::align<T>(),
291291
};
292292
}
@@ -302,7 +302,7 @@ factorize_blocked_req(proxsuite::linalg::veg::Tag<T> tag,
302302
proxsuite::linalg::veg::dynstack::StackReq{
303303
_detail::adjusted_stride<T>(
304304
_detail::max2(n - block_size, isize(0))) *
305-
block_size* isize{ sizeof(T) },
305+
block_size * isize{ sizeof(T) },
306306
_detail::align<T>(),
307307
};
308308
}

include/proxsuite/linalg/dense/ldlt.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -300,11 +300,11 @@ struct Ldlt
300300
-> proxsuite::linalg::veg::dynstack::StackReq
301301
{
302302
auto w_req = proxsuite::linalg::veg::dynstack::StackReq{
303-
_detail::adjusted_stride<T>(n) * r* isize{ sizeof(T) },
303+
_detail::adjusted_stride<T>(n) * r * isize{ sizeof(T) },
304304
_detail::align<T>(),
305305
};
306306
auto alpha_req = proxsuite::linalg::veg::dynstack::StackReq{
307-
r* isize{ sizeof(T) },
307+
r * isize{ sizeof(T) },
308308
alignof(T),
309309
};
310310
return w_req & alpha_req;
@@ -321,7 +321,7 @@ struct Ldlt
321321
-> proxsuite::linalg::veg::dynstack::StackReq
322322
{
323323
return proxsuite::linalg::veg::dynstack::StackReq{
324-
r* isize{ sizeof(isize) },
324+
r * isize{ sizeof(isize) },
325325
alignof(isize),
326326
} &
327327
proxsuite::linalg::dense::ldlt_delete_rows_and_cols_req(
@@ -486,15 +486,15 @@ struct Ldlt
486486
{
487487
using proxsuite::linalg::veg::dynstack::StackReq;
488488
auto algo_req = StackReq{
489-
2 * r* isize{ sizeof(isize) },
489+
2 * r * isize{ sizeof(isize) },
490490
alignof(isize),
491491
};
492492
auto w_req = StackReq{
493-
_detail::adjusted_stride<T>(n) * r* isize{ sizeof(T) },
493+
_detail::adjusted_stride<T>(n) * r * isize{ sizeof(T) },
494494
_detail::align<T>(),
495495
};
496496
auto alpha_req = StackReq{
497-
r* isize{ sizeof(T) },
497+
r * isize{ sizeof(T) },
498498
alignof(T),
499499
};
500500
return algo_req & w_req & alpha_req;
@@ -755,7 +755,7 @@ struct Ldlt
755755
-> proxsuite::linalg::veg::dynstack::StackReq
756756
{
757757
return {
758-
n* isize{ sizeof(T) },
758+
n * isize{ sizeof(T) },
759759
_detail::align<T>(),
760760
};
761761
}

include/proxsuite/linalg/dense/modify.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,11 @@ ldlt_delete_rows_and_cols_req(proxsuite::linalg::veg::Tag<T> /*tag*/,
273273
{
274274

275275
auto w_req = proxsuite::linalg::veg::dynstack::StackReq{
276-
_detail::adjusted_stride<T>(n - r) * r* isize{ sizeof(T) },
276+
_detail::adjusted_stride<T>(n - r) * r * isize{ sizeof(T) },
277277
_detail::align<T>(),
278278
};
279279
auto alpha_req = proxsuite::linalg::veg::dynstack::StackReq{
280-
r* isize{ sizeof(T) },
280+
r * isize{ sizeof(T) },
281281
alignof(T),
282282
};
283283
return w_req & alpha_req;
@@ -305,11 +305,11 @@ ldlt_insert_rows_and_cols_req(proxsuite::linalg::veg::Tag<T> tag,
305305
auto factorize_req = proxsuite::linalg::dense::factorize_req(tag, r);
306306

307307
auto w_req = proxsuite::linalg::veg::dynstack::StackReq{
308-
_detail::adjusted_stride<T>(n) * r* isize{ sizeof(T) },
308+
_detail::adjusted_stride<T>(n) * r * isize{ sizeof(T) },
309309
_detail::align<T>(),
310310
};
311311
auto alpha_req = proxsuite::linalg::veg::dynstack::StackReq{
312-
r* isize{ sizeof(T) },
312+
r * isize{ sizeof(T) },
313313
alignof(T),
314314
};
315315

include/proxsuite/linalg/sparse/factorize.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ auto
252252
etree_req(proxsuite::linalg::veg::Tag<I> /*tag*/, isize n) noexcept
253253
-> proxsuite::linalg::veg::dynstack::StackReq
254254
{
255-
return { n* isize{ sizeof(I) }, alignof(I) };
255+
return { n * isize{ sizeof(I) }, alignof(I) };
256256
}
257257

258258
/*!
@@ -719,7 +719,7 @@ auto
719719
amd_req(proxsuite::linalg::veg::Tag<I> /*tag*/, isize /*n*/, isize nnz) noexcept
720720
-> proxsuite::linalg::veg::dynstack::StackReq
721721
{
722-
return { nnz* isize{ sizeof(char) }, alignof(char) };
722+
return { nnz * isize{ sizeof(char) }, alignof(char) };
723723
}
724724

725725
template<typename I>
@@ -770,14 +770,14 @@ symmetric_permute_symbolic_req(proxsuite::linalg::veg::Tag<I> /*tag*/,
770770
isize n) noexcept
771771
-> proxsuite::linalg::veg::dynstack::StackReq
772772
{
773-
return { n* isize{ sizeof(I) }, alignof(I) };
773+
return { n * isize{ sizeof(I) }, alignof(I) };
774774
}
775775
template<typename I>
776776
auto
777777
symmetric_permute_req(proxsuite::linalg::veg::Tag<I> /*tag*/, isize n) noexcept
778778
-> proxsuite::linalg::veg::dynstack::StackReq
779779
{
780-
return { n* isize{ sizeof(I) }, alignof(I) };
780+
return { n * isize{ sizeof(I) }, alignof(I) };
781781
}
782782

783783
template<typename I>
@@ -949,7 +949,7 @@ factorize_symbolic_req(proxsuite::linalg::veg::Tag<I> tag,
949949
StackReq{ n * sz, al } & StackReq{ sparse::amd_req(tag, n, nnz) };
950950
HEDLEY_FALL_THROUGH;
951951
case Ordering::user_provided:
952-
perm_req = perm_req& StackReq{ (n + 1 + nnz) * sz, al };
952+
perm_req = perm_req & StackReq{ (n + 1 + nnz) * sz, al };
953953
perm_req = perm_req & _detail::symmetric_permute_symbolic_req(tag, n);
954954
default:
955955
break;
@@ -1131,7 +1131,7 @@ factorize_numeric_req(proxsuite::linalg::veg::Tag<T> /*ttag*/,
11311131
& (symb_perm_req //
11321132
& (StackReq{ 2 * n * sz, al } //
11331133
& (StackReq{ n * tsz, tal } //
1134-
& StackReq{ n* isize{ sizeof(bool) }, alignof(bool) }))));
1134+
& StackReq{ n * isize{ sizeof(bool) }, alignof(bool) }))));
11351135
}
11361136

11371137
/*!

include/proxsuite/linalg/sparse/rowmod.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ add_row_req( //
149149
isize max_nnz) noexcept -> proxsuite::linalg::veg::dynstack::StackReq
150150
{
151151
using proxsuite::linalg::veg::dynstack::StackReq;
152-
auto numerical_work = StackReq{ n* isize{ sizeof(T) }, isize{ alignof(T) } };
152+
auto numerical_work = StackReq{ n * isize{ sizeof(T) }, isize{ alignof(T) } };
153153
auto permuted_indices =
154154
StackReq{ (id_perm ? 0 : nnz) * isize{ sizeof(I) }, isize{ alignof(I) } };
155-
auto pattern_diff = StackReq{ n* isize{ sizeof(I) }, isize{ alignof(I) } };
155+
auto pattern_diff = StackReq{ n * isize{ sizeof(I) }, isize{ alignof(I) } };
156156
auto merge =
157157
merge_second_col_into_first_req(proxsuite::linalg::veg::Tag<I>{}, n);
158158
auto update = sparse::rank1_update_req(proxsuite::linalg::veg::Tag<T>{},

include/proxsuite/linalg/sparse/update.hpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ merge_second_col_into_first_req(proxsuite::linalg::veg::Tag<I> /*tag*/,
2323
-> proxsuite::linalg::veg::dynstack::StackReq
2424
{
2525
return {
26-
second_size* isize{ sizeof(I) },
26+
second_size * isize{ sizeof(I) },
2727
alignof(I),
2828
};
2929
}
@@ -175,15 +175,16 @@ rank1_update_req( //
175175
isize col_nnz) noexcept -> proxsuite::linalg::veg::dynstack::StackReq
176176
{
177177
using proxsuite::linalg::veg::dynstack::StackReq;
178-
StackReq permuted_indices = { id_perm ? 0 : (col_nnz* isize{ sizeof(I) }),
178+
StackReq permuted_indices = { id_perm ? 0 : (col_nnz * isize{ sizeof(I) }),
179179
isize{ alignof(I) } };
180-
StackReq difference = { n* isize{ sizeof(I) }, isize{ alignof(I) } };
180+
StackReq difference = { n * isize{ sizeof(I) }, isize{ alignof(I) } };
181181
difference = difference & difference;
182182

183183
StackReq merge = sparse::merge_second_col_into_first_req(
184184
proxsuite::linalg::veg::Tag<I>{}, n);
185185

186-
StackReq numerical_workspace = { n* isize{ sizeof(T) }, isize{ alignof(T) } };
186+
StackReq numerical_workspace = { n * isize{ sizeof(T) },
187+
isize{ alignof(T) } };
187188

188189
return permuted_indices & ((difference & merge) | numerical_workspace);
189190
}

0 commit comments

Comments
 (0)