Skip to content

Commit

Permalink
Fix CI test failures in sparse docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
houkensjtu committed May 8, 2023
1 parent 2e5155d commit 1bc1435
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/lang/articles/math/linear_solver.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ K = ti.linalg.SparseMatrixBuilder(n, n, max_num_triplets=100)
b = ti.ndarray(ti.f32, shape=n)

@ti.kernel
def fill(A: ti.types.sparse_matrix_builder(), b: ti.template(), interval: ti.i32):
def fill(A: ti.types.sparse_matrix_builder(), b: ti.types.ndarray(), interval: ti.i32):
for i in range(n):
A[i, i] += 2.0

Expand Down
2 changes: 1 addition & 1 deletion docs/lang/articles/math/sparse_matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ print(A)

The basic operations like `+`, `-`, `*`, `@` and transpose of sparse matrices are supported now.

```python
```python cont
print(">>>> Summation: C = A + A")
C = A + A
print(C)
Expand Down

0 comments on commit 1bc1435

Please sign in to comment.