Registered MLPPLinAlg into the ClassDB, and fixed all of it's warnings.

This commit is contained in:
Relintai 2023-02-12 19:14:20 +01:00
parent 34f81277cd
commit f459384282
3 changed files with 204 additions and 187 deletions

File diff suppressed because it is too large Load Diff

View File

@ -12,13 +12,17 @@
#include "core/math/math_defs.h" #include "core/math/math_defs.h"
#include "core/object/reference.h"
#include "../lin_alg/mlpp_matrix.h" #include "../lin_alg/mlpp_matrix.h"
#include "../lin_alg/mlpp_vector.h" #include "../lin_alg/mlpp_vector.h"
#include <tuple> #include <tuple>
#include <vector> #include <vector>
class MLPPLinAlg { class MLPPLinAlg : public Reference {
GDCLASS(MLPPLinAlg, Reference);
public: public:
// MATRIX FUNCTIONS // MATRIX FUNCTIONS
@ -326,7 +330,8 @@ public:
std::vector<std::vector<std::vector<real_t>>> vector_wise_tensor_product(std::vector<std::vector<std::vector<real_t>>> A, std::vector<std::vector<real_t>> B); std::vector<std::vector<std::vector<real_t>>> vector_wise_tensor_product(std::vector<std::vector<std::vector<real_t>>> A, std::vector<std::vector<real_t>> B);
private: protected:
static void _bind_methods();
}; };
#endif /* LinAlg_hpp */ #endif /* LinAlg_hpp */

View File

@ -32,6 +32,7 @@ SOFTWARE.
#include "mlpp/cost/cost.h" #include "mlpp/cost/cost.h"
#include "mlpp/gauss_markov_checker/gauss_markov_checker.h" #include "mlpp/gauss_markov_checker/gauss_markov_checker.h"
#include "mlpp/hypothesis_testing/hypothesis_testing.h" #include "mlpp/hypothesis_testing/hypothesis_testing.h"
#include "mlpp/lin_alg/lin_alg.h"
#include "mlpp/numerical_analysis/numerical_analysis.h" #include "mlpp/numerical_analysis/numerical_analysis.h"
#include "mlpp/regularization/reg.h" #include "mlpp/regularization/reg.h"
#include "mlpp/stat/stat.h" #include "mlpp/stat/stat.h"
@ -84,6 +85,7 @@ void register_pmlpp_types(ModuleRegistrationLevel p_level) {
ClassDB::register_class<MLPPHypothesisTesting>(); ClassDB::register_class<MLPPHypothesisTesting>();
ClassDB::register_class<MLPPGaussMarkovChecker>(); ClassDB::register_class<MLPPGaussMarkovChecker>();
ClassDB::register_class<MLPPConvolutions>(); ClassDB::register_class<MLPPConvolutions>();
ClassDB::register_class<MLPPLinAlg>();
ClassDB::register_class<MLPPHiddenLayer>(); ClassDB::register_class<MLPPHiddenLayer>();
ClassDB::register_class<MLPPOutputLayer>(); ClassDB::register_class<MLPPOutputLayer>();