Added Matrix and vector skeleton classes.

This commit is contained in:
Relintai 2023-01-26 16:02:45 +01:00
parent 2dabbb42be
commit cdbcac61eb
7 changed files with 68 additions and 1 deletions

3
SCsub
View File

@ -7,6 +7,9 @@ module_env = env.Clone()
sources = [
"register_types.cpp",
"mlpp/lin_alg/mlpp_vector.cpp",
"mlpp/lin_alg/mlpp_matrix.cpp",
"mlpp/activation/activation.cpp",
"mlpp/ann/ann.cpp",
"mlpp/auto_encoder/auto_encoder.cpp",

View File

@ -6,8 +6,9 @@ def configure(env):
def get_doc_classes():
return [
"MLPPVector",
"MLPPMatrix",
"MLPPTests",
]

View File

@ -0,0 +1,12 @@
#include "mlpp_matrix.h"
MLPPMatrix::MLPPMatrix() {
}
MLPPMatrix::~MLPPMatrix() {
}
void MLPPMatrix::_bind_methods() {
//ClassDB::bind_method(D_METHOD(""), &MLPPMatrix::);
}

View File

@ -0,0 +1,17 @@
#ifndef MLPP_MATRIX_H
#define MLPP_MATRIX_H
#include "core/object/reference.h"
class MLPPMatrix : public Reference {
GDCLASS(MLPPMatrix, Reference);
public:
MLPPMatrix();
~MLPPMatrix();
protected:
static void _bind_methods();
};
#endif

View File

@ -0,0 +1,12 @@
#include "mlpp_vector.h"
MLPPVector::MLPPVector() {
}
MLPPVector::~MLPPVector() {
}
void MLPPVector::_bind_methods() {
//ClassDB::bind_method(D_METHOD(""), &MLPPVector::);
}

View File

@ -0,0 +1,17 @@
#ifndef MLPP_VECTOR_H
#define MLPP_VECTOR_H
#include "core/object/reference.h"
class MLPPVector : public Reference {
GDCLASS(MLPPVector, Reference);
public:
MLPPVector();
~MLPPVector();
protected:
static void _bind_methods();
};
#endif

View File

@ -24,11 +24,16 @@ SOFTWARE.
#include "register_types.h"
#include "mlpp/data/data.h"
#include "mlpp/lin_alg/mlpp_vector.h"
#include "mlpp/lin_alg/mlpp_matrix.h"
#include "test/mlpp_tests.h"
void register_pmlpp_types(ModuleRegistrationLevel p_level) {
if (p_level == MODULE_REGISTRATION_LEVEL_SCENE) {
ClassDB::register_class<MLPPVector>();
ClassDB::register_class<MLPPMatrix>();
ClassDB::register_class<MLPPDataESimple>();
ClassDB::register_class<MLPPDataSimple>();
ClassDB::register_class<MLPPDataComplex>();