Registered MLPPTransforms into the ClassDB.

This commit is contained in:
Relintai 2023-02-12 15:13:49 +01:00
parent a9b30ef75f
commit e5de2d53f5
3 changed files with 12 additions and 4 deletions

View File

@ -10,8 +10,6 @@
#include <iostream>
#include <string>
// DCT ii.
// https://www.mathworks.com/help/images/discrete-cosine-transform.html
std::vector<std::vector<real_t>> MLPPTransforms::discreteCosineTransform(std::vector<std::vector<real_t>> A) {
@ -53,3 +51,6 @@ std::vector<std::vector<real_t>> MLPPTransforms::discreteCosineTransform(std::ve
}
return B;
}
void MLPPTransforms::_bind_methods() {
}

View File

@ -9,14 +9,19 @@
#include "core/math/math_defs.h"
#include "core/object/reference.h"
#include <string>
#include <vector>
class MLPPTransforms : public Reference {
GDCLASS(MLPPTransforms, Reference);
class MLPPTransforms {
public:
std::vector<std::vector<real_t>> discreteCosineTransform(std::vector<std::vector<real_t>> A);
protected:
static void _bind_methods();
};
#endif /* Transforms_hpp */

View File

@ -31,6 +31,7 @@ SOFTWARE.
#include "mlpp/cost/cost.h"
#include "mlpp/regularization/reg.h"
#include "mlpp/utilities/utilities.h"
#include "mlpp/transforms/transforms.h"
#include "mlpp/hidden_layer/hidden_layer.h"
#include "mlpp/multi_output_layer/multi_output_layer.h"
@ -60,6 +61,7 @@ void register_pmlpp_types(ModuleRegistrationLevel p_level) {
ClassDB::register_class<MLPPReg>();
ClassDB::register_class<MLPPActivation>();
ClassDB::register_class<MLPPCost>();
ClassDB::register_class<MLPPTransforms>();
ClassDB::register_class<MLPPHiddenLayer>();
ClassDB::register_class<MLPPOutputLayer>();