mirror of
https://github.com/Relintai/pmlpp.git
synced 2024-11-08 13:12:09 +01:00
Added Matrix and vector skeleton classes.
This commit is contained in:
parent
2dabbb42be
commit
cdbcac61eb
3
SCsub
3
SCsub
@ -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",
|
||||
|
@ -6,8 +6,9 @@ def configure(env):
|
||||
|
||||
def get_doc_classes():
|
||||
return [
|
||||
"MLPPVector",
|
||||
"MLPPMatrix",
|
||||
|
||||
|
||||
"MLPPTests",
|
||||
]
|
||||
|
||||
|
12
mlpp/lin_alg/mlpp_matrix.cpp
Normal file
12
mlpp/lin_alg/mlpp_matrix.cpp
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
#include "mlpp_matrix.h"
|
||||
|
||||
MLPPMatrix::MLPPMatrix() {
|
||||
}
|
||||
|
||||
MLPPMatrix::~MLPPMatrix() {
|
||||
}
|
||||
|
||||
void MLPPMatrix::_bind_methods() {
|
||||
//ClassDB::bind_method(D_METHOD(""), &MLPPMatrix::);
|
||||
}
|
17
mlpp/lin_alg/mlpp_matrix.h
Normal file
17
mlpp/lin_alg/mlpp_matrix.h
Normal 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
|
12
mlpp/lin_alg/mlpp_vector.cpp
Normal file
12
mlpp/lin_alg/mlpp_vector.cpp
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
#include "mlpp_vector.h"
|
||||
|
||||
MLPPVector::MLPPVector() {
|
||||
}
|
||||
|
||||
MLPPVector::~MLPPVector() {
|
||||
}
|
||||
|
||||
void MLPPVector::_bind_methods() {
|
||||
//ClassDB::bind_method(D_METHOD(""), &MLPPVector::);
|
||||
}
|
17
mlpp/lin_alg/mlpp_vector.h
Normal file
17
mlpp/lin_alg/mlpp_vector.h
Normal 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
|
@ -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>();
|
||||
|
Loading…
Reference in New Issue
Block a user