Describe the bug
same matrix multiply same value with different type, one is int the other is float, but get different result
To Reproduce
import taichi as ti
arch = ti.cpu
ti.init(arch=arch)
n = 4
K = ti.linalg.SparseMatrixBuilder(n, n, max_num_triplets=100)
@ti.kernel
def fill(A: ti.types.sparse_matrix_builder()):
for i in range(n):
A[i, i] += 1
fill(K)
K.print_triplets()
A = K.build()
print("----------------")
print(A * 3)
print("----------------")
print(A * 3.0)
Describe the bug same matrix multiply same value with different type, one is int the other is float, but get different result
To Reproduce
Log/Screenshots
hope this issue will be fixed well Thank you