From e69efc77208d59e7b7814fadf372c10789d54c0e Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 11 Mar 2025 22:25:57 +0900 Subject: [PATCH 1/4] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python_numpy/numpy_deploy.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/python_numpy/numpy_deploy.py b/python_numpy/numpy_deploy.py index 383a725..208ec32 100644 --- a/python_numpy/numpy_deploy.py +++ b/python_numpy/numpy_deploy.py @@ -48,7 +48,7 @@ def judge_matrix_type(matrix): for j in range(matrix.shape[1]): zero_flag = False - if matrix[i][j] == 0.0: + if matrix[i, j] == 0.0: zero_flag = True sparse_flag = True dense_flag = False @@ -137,7 +137,7 @@ def generate_matrix_cpp_code(matrix_in): for i in range(matrix.shape[0]): code_text += " ColumnAvailable<" for j in range(matrix.shape[1]): - if matrix[i][j] != 0: + if matrix[i, j] != 0: code_text += "true" else: code_text += "false" @@ -165,10 +165,10 @@ def generate_matrix_cpp_code(matrix_in): for j in range(matrix.shape[1]): if i == matrix.shape[0] - 1 and j == matrix.shape[1] - 1: code_text += NumpyDeploy.value_to_string_with_type( - matrix[i][j], type_name) + matrix[i, j], type_name) else: code_text += NumpyDeploy.value_to_string_with_type( - matrix[i][j], type_name) + matrix[i, j], type_name) if j != matrix.shape[1] - 1: code_text += ", " @@ -187,10 +187,10 @@ def generate_matrix_cpp_code(matrix_in): code_text += " " if i == matrix.shape[0] - 1: code_text += NumpyDeploy.value_to_string_with_type( - matrix[i][i], type_name) + "\n" + matrix[i, i], type_name) + "\n" else: code_text += NumpyDeploy.value_to_string_with_type( - matrix[i][i], type_name) + ",\n" + matrix[i, i], type_name) + ",\n" code_text += " );\n\n" @@ -201,14 +201,14 @@ def generate_matrix_cpp_code(matrix_in): sparse_count = 0 for i in range(matrix.shape[0]): for j in range(matrix.shape[1]): - if matrix[i][j] != 0: + if matrix[i, j] != 0: if sparse_count == 0: code_text += " " + NumpyDeploy.value_to_string_with_type( - matrix[i][j], type_name) + matrix[i, j], type_name) sparse_count += 1 else: code_text += ",\n " + NumpyDeploy.value_to_string_with_type( - matrix[i][j], type_name) + matrix[i, j], type_name) code_text += "\n );\n\n" From d1f1bdc804d90ada152517cc7c97177e229b98f1 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 11 Mar 2025 22:29:43 +0900 Subject: [PATCH 2/4] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python_numpy/python_numpy_linalg_solver.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_numpy/python_numpy_linalg_solver.hpp b/python_numpy/python_numpy_linalg_solver.hpp index 48db052..42c634e 100644 --- a/python_numpy/python_numpy_linalg_solver.hpp +++ b/python_numpy/python_numpy_linalg_solver.hpp @@ -135,7 +135,7 @@ class LinalgSolver { : X_1(), decay_rate(static_cast(0)), division_min( static_cast(DEFAULT_DIVISION_MIN_LINALG_SOLVER)), - rho(), rep_num() {} + rho({}), rep_num({}) {} /* Copy Constructor */ LinalgSolver( From f50a4717f086307df8f6ec2605c9235830efab8b Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 11 Mar 2025 22:30:38 +0900 Subject: [PATCH 3/4] =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/run_test_vs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run_test_vs.yml b/.github/workflows/run_test_vs.yml index c5b94ae..516bacc 100644 --- a/.github/workflows/run_test_vs.yml +++ b/.github/workflows/run_test_vs.yml @@ -2,7 +2,7 @@ name: Run test VS on: push: - branches: [ develop ] + branches: [ develop, fix_bug ] jobs: build: From a31a5db0a98e51fa78a11d76a3be1f8241c7b3c8 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 11 Mar 2025 22:31:35 +0900 Subject: [PATCH 4/4] =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88=E5=AE=8C?= =?UTF-8?q?=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/run_test_vs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run_test_vs.yml b/.github/workflows/run_test_vs.yml index 516bacc..c5b94ae 100644 --- a/.github/workflows/run_test_vs.yml +++ b/.github/workflows/run_test_vs.yml @@ -2,7 +2,7 @@ name: Run test VS on: push: - branches: [ develop, fix_bug ] + branches: [ develop ] jobs: build: