From 50930b0b4b0a31d3da40aa6f8217743cbe498f80 Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 26 Apr 2023 16:42:33 +0200 Subject: [PATCH] updated the module, and added a matrix test scene. --- HEADS | 2 +- game/test/Test.gd | 5 +++-- game/test/TestMatrix.gd | 9 +++++++++ game/test/TestMatrix.tscn | 6 ++++++ 4 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 game/test/TestMatrix.gd create mode 100644 game/test/TestMatrix.tscn diff --git a/HEADS b/HEADS index 38f416f..269865b 100644 --- a/HEADS +++ b/HEADS @@ -1 +1 @@ -{"engine": {"3.2": "94a0fc47f7b4e90f8973f9adbfd3312579ed2825", "master": "8c73e813134001e575b6f59e3b0100471c007410", "3.x": "c4864a0e5f73a375259503ea1485794a6aad6df7"}, "world_generator": {"master": "260c430f11b0b591eaf4714516419aa327d2842c"}, "entity_spell_system": {"master": "3536f01bacf5f54cefb32b768cd020a1f94d0ade"}, "ui_extensions": {"master": "80a3b96fc56991a0f88a1d441ed1e3cebaf3307a"}, "voxelman": {"master": "65485930a20f65844d496b4ba47dec5b6ed70b91"}, "texture_packer": {"master": "ae4d222fbaade063ed6f0bc9f3aaa53df68a7fed"}, "fastnoise": {"master": "46bb1f610bfb7171613b5c708d312bcf94e89356"}, "mesh_data_resource": {"master": "a062d871d49d954c5466b9de54b4075cb61cbef4"}, "procedural_animations": {"master": "f8aae42bf06b3936cc6bd24cb18e1c3ec9f78f4f"}, "ess_data": {"master": "3bd637fdd3304b64a18287a49a6b7387acf2f5de"}, "props": {"master": "983090d21a08ebed30a5ce06681269819ab12e48"}, "mesh_utils": {"master": "b52a261c31f04fad624e5cfbcdcc4a45d61136da"}, "broken_seals_module": {"master": "52c5a81350db1c29d375c63d95010260911ec034"}, "thread_pool": {"master": "0917511d04bb1aa308385b63ec88d3c182990628"}, "terraman": {"master": "c72d8fc03295588fc18c5168ce351bd0c321ec5f"}, "pandemonium_engine": {"master": "25e57a4268c06d801b14cadf029ad63334520d5e"}, "pmlpp": {"master": "fffb3075e473dc6cada2f916f56fdd56360781b1"}} \ No newline at end of file +{"engine": {"3.2": "94a0fc47f7b4e90f8973f9adbfd3312579ed2825", "master": "8c73e813134001e575b6f59e3b0100471c007410", "3.x": "c4864a0e5f73a375259503ea1485794a6aad6df7"}, "world_generator": {"master": "260c430f11b0b591eaf4714516419aa327d2842c"}, "entity_spell_system": {"master": "3536f01bacf5f54cefb32b768cd020a1f94d0ade"}, "ui_extensions": {"master": "80a3b96fc56991a0f88a1d441ed1e3cebaf3307a"}, "voxelman": {"master": "65485930a20f65844d496b4ba47dec5b6ed70b91"}, "texture_packer": {"master": "ae4d222fbaade063ed6f0bc9f3aaa53df68a7fed"}, "fastnoise": {"master": "46bb1f610bfb7171613b5c708d312bcf94e89356"}, "mesh_data_resource": {"master": "a062d871d49d954c5466b9de54b4075cb61cbef4"}, "procedural_animations": {"master": "f8aae42bf06b3936cc6bd24cb18e1c3ec9f78f4f"}, "ess_data": {"master": "3bd637fdd3304b64a18287a49a6b7387acf2f5de"}, "props": {"master": "983090d21a08ebed30a5ce06681269819ab12e48"}, "mesh_utils": {"master": "b52a261c31f04fad624e5cfbcdcc4a45d61136da"}, "broken_seals_module": {"master": "52c5a81350db1c29d375c63d95010260911ec034"}, "thread_pool": {"master": "0917511d04bb1aa308385b63ec88d3c182990628"}, "terraman": {"master": "c72d8fc03295588fc18c5168ce351bd0c321ec5f"}, "pandemonium_engine": {"master": "25e57a4268c06d801b14cadf029ad63334520d5e"}, "pmlpp": {"master": "3eff399d6b95f398d34533d86c27b531e62eec72"}} \ No newline at end of file diff --git a/game/test/Test.gd b/game/test/Test.gd index bfd9134..eda99d3 100644 --- a/game/test/Test.gd +++ b/game/test/Test.gd @@ -26,7 +26,7 @@ func _ready() -> void: # mlpp_tests.test_probit_regression(ui) # mlpp_tests.test_c_log_log_regression(ui) # mlpp_tests.test_exp_reg_regression(ui) - mlpp_tests.test_tanh_regression(ui) +# mlpp_tests.test_tanh_regression(ui) # mlpp_tests.test_softmax_regression(ui) # mlpp_tests.test_support_vector_classification(ui) # @@ -54,5 +54,6 @@ func _ready() -> void: # mlpp_tests.test_numerical_analysis() # mlpp_tests.test_support_vector_classification_kernel(ui) -# mlpp_tests.test_mlpp_matrix() # mlpp_tests.test_mlpp_vector() +# mlpp_tests.test_mlpp_matrix() + mlpp_tests.test_mlpp_matrix_mul() diff --git a/game/test/TestMatrix.gd b/game/test/TestMatrix.gd new file mode 100644 index 0000000..8f7f2af --- /dev/null +++ b/game/test/TestMatrix.gd @@ -0,0 +1,9 @@ +extends Node + +var mlpp_tests : MLPPMatrixTests = null + +func _ready() -> void: + mlpp_tests = MLPPMatrixTests.new() + + mlpp_tests.test_mlpp_matrix() + mlpp_tests.test_mlpp_matrix_mul() diff --git a/game/test/TestMatrix.tscn b/game/test/TestMatrix.tscn new file mode 100644 index 0000000..65f6e37 --- /dev/null +++ b/game/test/TestMatrix.tscn @@ -0,0 +1,6 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://test/TestMatrix.gd" type="Script" id=1] + +[node name="TestMatrix" type="Node"] +script = ExtResource( 1 )