init commit

This commit is contained in:
2024-11-12 17:41:10 +01:00
parent 1e4f1f955b
commit 20bc9108d3
146 changed files with 24465 additions and 0 deletions

29
backprop/synapseMatrix.h Normal file
View File

@@ -0,0 +1,29 @@
#ifndef _SYNAPSEMATRIX_H
#define _SYNAPSEMATRIX_H
#include "synapse.h"
#include <iostream>
#include <iomanip>
using namespace std;
class SynapseMatrix{
private:
Synapse** matrix;
unsigned int nbrLine;
unsigned int nbrCol;
void createMatrix(unsigned int line,unsigned int col);
void deleteMatrix();
public:
SynapseMatrix();
SynapseMatrix(unsigned int nbrL,unsigned int nbrC);
unsigned int getLineCount() const;
unsigned int getColumnCount() const;
void randomize();
friend ostream & operator<<(ostream & os,const SynapseMatrix & mat);
Synapse& operator()(const unsigned int i,const unsigned int j) const throw(const unsigned int,std::string);
SynapseMatrix& operator =(const SynapseMatrix& s);
~SynapseMatrix();
};
#endif