From ee727b327dda4f0af190f1096455a59d13d0c2df Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 8 Feb 2023 01:43:48 +0100 Subject: [PATCH] Added bind for is_equal_approx in MLPPMatrix. --- mlpp/lin_alg/mlpp_matrix.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mlpp/lin_alg/mlpp_matrix.cpp b/mlpp/lin_alg/mlpp_matrix.cpp index d8ac2d9..4e5122c 100644 --- a/mlpp/lin_alg/mlpp_matrix.cpp +++ b/mlpp/lin_alg/mlpp_matrix.cpp @@ -60,4 +60,6 @@ void MLPPMatrix::_bind_methods() { ClassDB::bind_method(D_METHOD("set_from_mlpp_vectors_array", "from"), &MLPPMatrix::set_from_mlpp_vectors_array); ClassDB::bind_method(D_METHOD("set_from_arrays", "from"), &MLPPMatrix::set_from_arrays); ClassDB::bind_method(D_METHOD("set_from_mlpp_matrix", "from"), &MLPPMatrix::set_from_mlpp_matrix); + + ClassDB::bind_method(D_METHOD("is_equal_approx", "with", "tolerance"), &MLPPMatrix::is_equal_approx, CMP_EPSILON); }