Skip to content

Commit 2026832

Browse files
committed
format
1 parent c5a601a commit 2026832

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/TiledArray/math/solvers/cp/cp_als.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class CP_ALS : public CP<Tile, Policy> {
7272
this->norm_ref_sq = this->norm_reference * this->norm_reference;
7373
}
7474

75-
void set_factor_matrices(std::vector<DistArray<Tile, Policy>> & factors){
75+
void set_factor_matrices(std::vector<DistArray<Tile, Policy>>& factors) {
7676
cp_factors = factors;
7777
factors_set = true;
7878
}
@@ -100,10 +100,9 @@ class CP_ALS : public CP<Tile, Policy> {
100100
rank_trange, reference.trange().data()[i]);
101101
cp_factors.emplace_back(factor);
102102
}
103-
}else if(factors_set){
103+
} else if (factors_set) {
104104
// Do nothing and don't throw an error.
105-
}
106-
else {
105+
} else {
107106
TA_EXCEPTION("Currently no implementation to increase or change rank");
108107
}
109108

0 commit comments

Comments
 (0)