Skip to content

Commit

Permalink
Auto Format
Browse files Browse the repository at this point in the history
  • Loading branch information
taichi-gardener committed Nov 17, 2021
1 parent 1fa889e commit 9efce67
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion python/taichi/lang/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,9 @@ def cast(self, dtype):
"""
_taichi_skip_traceback = 1
return Matrix([[ops_mod.cast(self(i, j), dtype) for j in range(self.m)] for i in range(self.n)])
return Matrix(
[[ops_mod.cast(self(i, j), dtype) for j in range(self.m)]
for i in range(self.n)])

def trace(self):
"""The sum of a matrix diagonal elements.
Expand Down
5 changes: 4 additions & 1 deletion taichi/ir/frontend_ir.h
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,10 @@ class RangeAssumptionExpression : public Expression {
const Expr &base,
int low,
int high)
: input(load_if_ptr(input)), base(load_if_ptr(base)), low(low), high(high) {
: input(load_if_ptr(input)),
base(load_if_ptr(base)),
low(low),
high(high) {
}

void type_check() override;
Expand Down

0 comments on commit 9efce67

Please sign in to comment.