Accueil > > > MANIPULATION DE MATRICES
MANIPULATION DE MATRICES
Information sur la source
Description
voila une petite biliothèque écrite en C++ et avec les templates pour créer des matrices et les manipuler
Source
- #ifndef MATRIX_H
- #define MATRIX_H
- #define DTVECT vector<idtype*>
- #include <vector>
- #include<math.h>
- using namespace std;
- template <class idtype> class mat
- {private:
- DTVECT data;
- int nbln;
- int nbcol;
- void verif(bool& flgb,mat<idtype>& b,int i,int j);
- public:
-
- //contructeurs et destructeur
- mat(int x, int y);
- mat();
- mat(mat<idtype>* cp);
- ~mat();
- //ajout de lignes et colonnes
- void addln(idtype* tab);
- //void addcol(idtype& tab);
- mat<idtype>& trans(); //retourne la transposée
- int delln(int id);//supprime la idème ligne
- int delcol(int id);
- mat<idtype>& mul(idtype& val);//retourne une matrice dont les valeurs sont
- //celles de *this mutipliées par val
- //produit matriciel
- mat<idtype>& operator*(const mat<idtype>& b);
- //surcharge d'opertateurs
- idtype* operator[](int n);
- mat<idtype>& operator+(const mat<idtype>& b);
- mat<idtype>& operator-(const mat<idtype>& b);
- void operator=(const mat<idtype>& cp);
- bool operator==(const mat<idtype>& cp);
- bool operator!=(const mat<idtype>& cp);
- mat<idtype>& operator/(const mat<idtype>& b);
- mat<idtype>& operator/(idtype val);
- mat<idtype>& operator+(idtype val);
- mat<idtype>& operator-(idtype val);
- int getnbln() const;
- idtype det();
- mat<idtype>& cof();
- mat<idtype>& inv();
- int getnbcol();
- };
- template<class idtype>
- void mat<idtype>::verif(bool& flgb,mat<idtype>& b,int i,int j)
- {
- flgb=(i>=b.nbln || i<0)? true : false;
- if(!flgb) flgb=(j>= b.nbcol || j<0)? true : false;
- }
- template <class idtype>
- mat<idtype>::mat()
- {
- nbln=nbcol=0;
- }
-
- template <class idtype>
- mat<idtype>::mat(int x, int y)
- {
- data.reserve(x);
- /*for(int i=0;i<x;i++)
- data[i]=new idtype[y];*/
- nbln=0;
- nbcol=y;
- }
-
- template <class idtype>
- mat<idtype>::mat(mat<idtype>* cp)
- {
- nbcol=cp->nbcol;
- nbln=0;
- /*for(int i=0;i<nbln;i++)
- delete[] data[i];*/
- //data.clear();
- data.reserve(cp->nbln);
- idtype* tab=new idtype[cp->nbcol];
- for(int i=0;i<cp->nbln;i++)
- {for(int j=0;j< cp->nbcol;j++)
- tab[j]=cp->data[i][j];
- addln(tab);
- }
- delete[] tab;
- }
-
- template<class idtype>
- mat<idtype>::~mat()
- {
- for(DTVECT::iterator i=data.begin();i!=data.end();i++)
- delete[] *i;
- }
- template<class idtype>
- void mat<idtype>::addln(idtype* tab)
- {
- idtype* ptr= new idtype[nbcol];
- for(int i=0;i<nbcol;i++)
- ptr[i]=tab[i];
- data.push_back(ptr);
- nbln++;
- }
- template<class idtype>
- mat<idtype>& mat<idtype>::trans()
- {
- mat<idtype>* ptr=new mat<idtype>(nbcol,nbln);
- idtype* ptr2=new idtype[nbcol];
- for(int j=0;j<nbcol;j++)
- {int i=0;
- for(DTVECT::iterator it=data.begin();it!=data.end();it++)
- {
- ptr2[i]=(*it)[j];
- i++;
- }
- ptr->addln(ptr2);
- }delete[] ptr2;
- return *ptr;
- }
- template<class idtype>
- int mat<idtype>::delln(int id)
- {
- if(id<0 || id>=nbln) return 1;
- delete[] data[id];
- DTVECT::iterator it=data.begin();
- it+=id;
- data.erase(it);
- nbln--;
- return 0;
- }
- template<class idtype>
- mat<idtype>& mat<idtype>::operator*(const mat<idtype>& b)
- {if (this->nbcol==b.nbln)
- {
- mat<idtype>* ptr= new mat(this->nbln,b.nbcol);
- int j,k,somme;
- idtype* tab=new idtype[b.nbcol];
- for(int i=0;i<this->nbln;i++)
- {for(j=0;j<b.nbcol;j++)
- {
- somme=0;
- for(k=0;k<this->nbcol;k++)
- somme+=this->data[i][k] * b.data[k][j];
- tab[j]=somme;
- }
- ptr->addln(tab);
- }
- delete[] tab;
- return *ptr;
- }
- else return *this;
- }
- template<class idtype>
- idtype* mat<idtype>::operator[](int n)
- {return data[n];}
- template<class idtype>
- mat<idtype>& mat<idtype>::operator+(const mat<idtype>& b)
- {
- int ln,col;
- ln=(this->nbln >b.nbln)? this->nbln : b.nbln;
- col=(this->nbcol >b.nbcol)? this->nbcol : b.nbcol;
- mat<idtype>* ptr=new mat(ln,col);
- idtype* tab=new idtype[col];
- int j;
- for(int i=0;i<ln;i++)
- {
- for(j=0;j<col;j++)
- {
- bool flga,flgb;
- flga=flgb=false;
- flga=(i>this->nbln || i<0)? true : false;
- if(!flga) flga=(j> this->nbcol || j<0)? true : false;
- flgb=(i>b.nbln || i<0)? true : false;
- if(!flgb) flgb=(j> b.nbcol || j<0)? true : false;
- if(!flga && !flgb) tab[j]=(*this).data[i][j]+b.data[i][j];
- else {
- if(!flgb) tab[j]=b.data[i][j];
- else{ if(!flga) tab[j]=this->data[i][j];
- else tab[j]=0;
- }
- }
-
- }
- ptr->addln(tab);
- }
- delete[] tab;
- return *ptr;
- }
- template<class idtype>
- void mat<idtype>::operator=(const mat<idtype>& cp)
- {
- if(this==cp) return this;
- else
- {
- nbcol=cp.nbcol;
- for(int i=0;i<nbln;i++)
- delete[] data[i];
- data.clear();
- nbln=0;
- data.reserve(cp.nbln);
- idtype* tab=new idtype[nbcol];
- for(int i=0;i< cp.nbln;i++)
- {for(int j=0;j<nbcol;j++)
- tab[j]=cp.data[i][j];
- addln(tab);
- }
- delete[] tab;
- }
- }
- template<class idtype>
- bool mat<idtype>::operator==(const mat<idtype>& cp)
- {
- if(nbln==cp.nbln && nbcol==cp.nbcol)
- {
- int j;
- bool flg=true;
- for(int i=0;i<nbln;i++)
- for(j=0;j<nbcol;j++)
- flg=(data[i][j]!=cp.data[i][j])? false : true;
- return flg;
- }
- else return false;
- }
- template<class idtype>
- bool mat<idtype>::operator!=(const mat<idtype>& cp)
- {
- if(*this==cp) return false;
- else return true;
- }
- template<class idtype>
- mat<idtype>& mat<idtype>::operator-(const mat<idtype>& b)
- {
- int ln,col;
- ln=(nbln> b.nbln)? nbln : b.nbln;
- col=(nbcol> b.nbcol)? nbcol : b.nbcol;
- mat<idtype>* ptr=new mat(ln,col);
- idtype* tab=new idtype[col];
- for(int i=0;i<ln;i++)
- {for(int j=0;j<col;j++)
- {
- bool flga,flgb;
- flga=flgb=false;
- verif(flga,*this,i,j);
- verif(flgb,b,i,j);
- if (!flga && !flgb)
- tab[j]=(data[i][j]) - (b.data[i][j]);
- else {
- if(!flga) tab[j]=data[i][j];
- else {if(!flgb) tab[j]=-(b.data[i][j]);
- else tab[j]=0;
- }
- }
- }
- ptr->addln(tab);
- }
- delete[] tab;
- return *ptr;
- }
- template <class idtype>
- mat<idtype>& mat<idtype>::mul(idtype& val)
- {
- mat<idtype>* ptr=new mat(nbln,nbcol);
- idtype* tab=new idtype[nbcol];
- for(int i=0;i<nbln;i++)
- {for(int j=0;j<nbcol;j++)
- tab[j]=data[i][j]*val;
- ptr->addln(tab);
- }
- delete[] tab;
- return *ptr;
- }
- template <class idtype>
- mat<idtype>& mat<idtype>::operator/(const mat<idtype>& b)
- {
- mat<idtype>* ptr=new mat(b.nbln,b.nbcol);
- bool flg;
- idtype* tab=new idtype[b.nbcol];
- for(int i=0;i< b.nbln;i++)
- {for(int j=0;j< b.nbcol;j++)
- {
- flg=false;
- verif(flg,*this,i,j);
- if(flg || b.data[i][j]==0) tab[j]=0;
- else tab[j]=data[i][j] / b.data[i][j];
- }
- ptr->addln(tab);
- }
- delete[] tab;
- return *ptr;
- }
- template <class idtype>
- mat<idtype>& mat<idtype>::operator/(idtype val)
- {
- if(val)
- {
- mat<idtype>* ptr=new mat(nbln,nbcol);
- idtype* tab=new idtype[nbcol];
- for(int i=0;i<nbln;i++)
- {for(int j=0;j<nbcol;j++)
- tab[j]=data[i][j]/val;
- ptr->addln(tab);
- }
- delete[] tab;
- return *ptr;
- }
- else return *this;
- }
- template<class idtype>
- mat<idtype>& mat<idtype>::operator+(idtype val)
- {
- mat<idtype>* ptr=new mat(nbln,nbcol);
- idtype* tab=new idtype[nbcol];
- for(int i=0;i<nbln;i++)
- {for(int j=0;j<nbcol;j++)
- tab[j]=data[i][j]+val;
- ptr->addln(tab);
- }
- delete[] tab;
- return *ptr;
- }
- template<class idtype>
- mat<idtype>& mat<idtype>::operator-(idtype val)
- {
- mat<idtype>* ptr=new mat(nbln,nbcol);
- idtype* tab=new idtype[nbcol];
- for(int i=0;i<nbln;i++)
- {for(int j=0;j<nbcol;j++)
- tab[j]=data[i][j]-val;
- ptr->addln(tab);
- }
- delete[] tab;
- return *ptr;
- }
- #endif
-
- template<class idtype>
- int mat<idtype>::getnbln() const
- { return nbln;
- //TODO: Add your source code here
- }
- template<class idtype>
- int mat<idtype>::delcol(int id)
- {if(id<0 || id>=nbcol) return 1;
- for(int i=0;i<nbln;i++)
- {
- int k=0;
- idtype* tab=new idtype[nbcol-1];
- for(int j=0;j<nbcol;j++)
- {
- if(j !=id)
- {
- tab[k]=data[i][j];
- k++;
- }
- }
- delete[] data[i];
- data[i]=tab;
- }
- nbcol--;
- return 0;
- }
- template<class idtype>
- idtype mat<idtype>::det()
- {if(nbln==nbcol){
- if(nbln==2)
- return (data[0][0] * data[1][1])-(data[1][0] * data[0][1]);
- else
- {
- idtype somme=0;
- for(int i=0;i<nbcol;i++)
- {mat<idtype> tmp(this);
- tmp.delln(0);
- tmp.delcol(i);
- somme+=pow(-1,i) * data[0][i] * tmp.det();
- }
- return somme;
- }}
- else return 0;
- }
- template<class idtype>
- mat<idtype>& mat<idtype>::cof()
- {
- if(nbln==nbcol)
- {
- mat<idtype>* ptr=new mat<idtype>(nbln,nbcol);
- idtype* tab=new idtype[nbcol];
- for(int i=0;i<nbln;i++)
- {
- for(int j=0;j<nbcol;j++)
- {
- mat<idtype> tmp(this);
- tmp.delln(i);
- tmp.delcol(j);
- tab[j]=(pow(-1,i+j)* tmp.det());
- }
- ptr->addln(tab);
- }
- delete[] tab;
- return *ptr;
- }
- else return *this;
- }
- template<class idtype>
- mat<idtype>& mat<idtype>::inv()
- {
- if(nbln==nbcol)
- {
- mat<idtype>* ptr=&((*this).trans().cof().mul(1/this->det()));
- return *ptr;
- }
- else return *this;
- }
- template<class idtype>
- int mat<idtype>::getnbcol()
- {
- return nbcol;
- }
#ifndef MATRIX_H
#define MATRIX_H
#define DTVECT vector<idtype*>
#include <vector>
#include<math.h>
using namespace std;
template <class idtype> class mat
{private:
DTVECT data;
int nbln;
int nbcol;
void verif(bool& flgb,mat<idtype>& b,int i,int j);
public:
//contructeurs et destructeur
mat(int x, int y);
mat();
mat(mat<idtype>* cp);
~mat();
//ajout de lignes et colonnes
void addln(idtype* tab);
//void addcol(idtype& tab);
mat<idtype>& trans(); //retourne la transposée
int delln(int id);//supprime la idème ligne
int delcol(int id);
mat<idtype>& mul(idtype& val);//retourne une matrice dont les valeurs sont
//celles de *this mutipliées par val
//produit matriciel
mat<idtype>& operator*(const mat<idtype>& b);
//surcharge d'opertateurs
idtype* operator[](int n);
mat<idtype>& operator+(const mat<idtype>& b);
mat<idtype>& operator-(const mat<idtype>& b);
void operator=(const mat<idtype>& cp);
bool operator==(const mat<idtype>& cp);
bool operator!=(const mat<idtype>& cp);
mat<idtype>& operator/(const mat<idtype>& b);
mat<idtype>& operator/(idtype val);
mat<idtype>& operator+(idtype val);
mat<idtype>& operator-(idtype val);
int getnbln() const;
idtype det();
mat<idtype>& cof();
mat<idtype>& inv();
int getnbcol();
};
template<class idtype>
void mat<idtype>::verif(bool& flgb,mat<idtype>& b,int i,int j)
{
flgb=(i>=b.nbln || i<0)? true : false;
if(!flgb) flgb=(j>= b.nbcol || j<0)? true : false;
}
template <class idtype>
mat<idtype>::mat()
{
nbln=nbcol=0;
}
template <class idtype>
mat<idtype>::mat(int x, int y)
{
data.reserve(x);
/*for(int i=0;i<x;i++)
data[i]=new idtype[y];*/
nbln=0;
nbcol=y;
}
template <class idtype>
mat<idtype>::mat(mat<idtype>* cp)
{
nbcol=cp->nbcol;
nbln=0;
/*for(int i=0;i<nbln;i++)
delete[] data[i];*/
//data.clear();
data.reserve(cp->nbln);
idtype* tab=new idtype[cp->nbcol];
for(int i=0;i<cp->nbln;i++)
{for(int j=0;j< cp->nbcol;j++)
tab[j]=cp->data[i][j];
addln(tab);
}
delete[] tab;
}
template<class idtype>
mat<idtype>::~mat()
{
for(DTVECT::iterator i=data.begin();i!=data.end();i++)
delete[] *i;
}
template<class idtype>
void mat<idtype>::addln(idtype* tab)
{
idtype* ptr= new idtype[nbcol];
for(int i=0;i<nbcol;i++)
ptr[i]=tab[i];
data.push_back(ptr);
nbln++;
}
template<class idtype>
mat<idtype>& mat<idtype>::trans()
{
mat<idtype>* ptr=new mat<idtype>(nbcol,nbln);
idtype* ptr2=new idtype[nbcol];
for(int j=0;j<nbcol;j++)
{int i=0;
for(DTVECT::iterator it=data.begin();it!=data.end();it++)
{
ptr2[i]=(*it)[j];
i++;
}
ptr->addln(ptr2);
}delete[] ptr2;
return *ptr;
}
template<class idtype>
int mat<idtype>::delln(int id)
{
if(id<0 || id>=nbln) return 1;
delete[] data[id];
DTVECT::iterator it=data.begin();
it+=id;
data.erase(it);
nbln--;
return 0;
}
template<class idtype>
mat<idtype>& mat<idtype>::operator*(const mat<idtype>& b)
{if (this->nbcol==b.nbln)
{
mat<idtype>* ptr= new mat(this->nbln,b.nbcol);
int j,k,somme;
idtype* tab=new idtype[b.nbcol];
for(int i=0;i<this->nbln;i++)
{for(j=0;j<b.nbcol;j++)
{
somme=0;
for(k=0;k<this->nbcol;k++)
somme+=this->data[i][k] * b.data[k][j];
tab[j]=somme;
}
ptr->addln(tab);
}
delete[] tab;
return *ptr;
}
else return *this;
}
template<class idtype>
idtype* mat<idtype>::operator[](int n)
{return data[n];}
template<class idtype>
mat<idtype>& mat<idtype>::operator+(const mat<idtype>& b)
{
int ln,col;
ln=(this->nbln >b.nbln)? this->nbln : b.nbln;
col=(this->nbcol >b.nbcol)? this->nbcol : b.nbcol;
mat<idtype>* ptr=new mat(ln,col);
idtype* tab=new idtype[col];
int j;
for(int i=0;i<ln;i++)
{
for(j=0;j<col;j++)
{
bool flga,flgb;
flga=flgb=false;
flga=(i>this->nbln || i<0)? true : false;
if(!flga) flga=(j> this->nbcol || j<0)? true : false;
flgb=(i>b.nbln || i<0)? true : false;
if(!flgb) flgb=(j> b.nbcol || j<0)? true : false;
if(!flga && !flgb) tab[j]=(*this).data[i][j]+b.data[i][j];
else {
if(!flgb) tab[j]=b.data[i][j];
else{ if(!flga) tab[j]=this->data[i][j];
else tab[j]=0;
}
}
}
ptr->addln(tab);
}
delete[] tab;
return *ptr;
}
template<class idtype>
void mat<idtype>::operator=(const mat<idtype>& cp)
{
if(this==cp) return this;
else
{
nbcol=cp.nbcol;
for(int i=0;i<nbln;i++)
delete[] data[i];
data.clear();
nbln=0;
data.reserve(cp.nbln);
idtype* tab=new idtype[nbcol];
for(int i=0;i< cp.nbln;i++)
{for(int j=0;j<nbcol;j++)
tab[j]=cp.data[i][j];
addln(tab);
}
delete[] tab;
}
}
template<class idtype>
bool mat<idtype>::operator==(const mat<idtype>& cp)
{
if(nbln==cp.nbln && nbcol==cp.nbcol)
{
int j;
bool flg=true;
for(int i=0;i<nbln;i++)
for(j=0;j<nbcol;j++)
flg=(data[i][j]!=cp.data[i][j])? false : true;
return flg;
}
else return false;
}
template<class idtype>
bool mat<idtype>::operator!=(const mat<idtype>& cp)
{
if(*this==cp) return false;
else return true;
}
template<class idtype>
mat<idtype>& mat<idtype>::operator-(const mat<idtype>& b)
{
int ln,col;
ln=(nbln> b.nbln)? nbln : b.nbln;
col=(nbcol> b.nbcol)? nbcol : b.nbcol;
mat<idtype>* ptr=new mat(ln,col);
idtype* tab=new idtype[col];
for(int i=0;i<ln;i++)
{for(int j=0;j<col;j++)
{
bool flga,flgb;
flga=flgb=false;
verif(flga,*this,i,j);
verif(flgb,b,i,j);
if (!flga && !flgb)
tab[j]=(data[i][j]) - (b.data[i][j]);
else {
if(!flga) tab[j]=data[i][j];
else {if(!flgb) tab[j]=-(b.data[i][j]);
else tab[j]=0;
}
}
}
ptr->addln(tab);
}
delete[] tab;
return *ptr;
}
template <class idtype>
mat<idtype>& mat<idtype>::mul(idtype& val)
{
mat<idtype>* ptr=new mat(nbln,nbcol);
idtype* tab=new idtype[nbcol];
for(int i=0;i<nbln;i++)
{for(int j=0;j<nbcol;j++)
tab[j]=data[i][j]*val;
ptr->addln(tab);
}
delete[] tab;
return *ptr;
}
template <class idtype>
mat<idtype>& mat<idtype>::operator/(const mat<idtype>& b)
{
mat<idtype>* ptr=new mat(b.nbln,b.nbcol);
bool flg;
idtype* tab=new idtype[b.nbcol];
for(int i=0;i< b.nbln;i++)
{for(int j=0;j< b.nbcol;j++)
{
flg=false;
verif(flg,*this,i,j);
if(flg || b.data[i][j]==0) tab[j]=0;
else tab[j]=data[i][j] / b.data[i][j];
}
ptr->addln(tab);
}
delete[] tab;
return *ptr;
}
template <class idtype>
mat<idtype>& mat<idtype>::operator/(idtype val)
{
if(val)
{
mat<idtype>* ptr=new mat(nbln,nbcol);
idtype* tab=new idtype[nbcol];
for(int i=0;i<nbln;i++)
{for(int j=0;j<nbcol;j++)
tab[j]=data[i][j]/val;
ptr->addln(tab);
}
delete[] tab;
return *ptr;
}
else return *this;
}
template<class idtype>
mat<idtype>& mat<idtype>::operator+(idtype val)
{
mat<idtype>* ptr=new mat(nbln,nbcol);
idtype* tab=new idtype[nbcol];
for(int i=0;i<nbln;i++)
{for(int j=0;j<nbcol;j++)
tab[j]=data[i][j]+val;
ptr->addln(tab);
}
delete[] tab;
return *ptr;
}
template<class idtype>
mat<idtype>& mat<idtype>::operator-(idtype val)
{
mat<idtype>* ptr=new mat(nbln,nbcol);
idtype* tab=new idtype[nbcol];
for(int i=0;i<nbln;i++)
{for(int j=0;j<nbcol;j++)
tab[j]=data[i][j]-val;
ptr->addln(tab);
}
delete[] tab;
return *ptr;
}
#endif
template<class idtype>
int mat<idtype>::getnbln() const
{ return nbln;
//TODO: Add your source code here
}
template<class idtype>
int mat<idtype>::delcol(int id)
{if(id<0 || id>=nbcol) return 1;
for(int i=0;i<nbln;i++)
{
int k=0;
idtype* tab=new idtype[nbcol-1];
for(int j=0;j<nbcol;j++)
{
if(j !=id)
{
tab[k]=data[i][j];
k++;
}
}
delete[] data[i];
data[i]=tab;
}
nbcol--;
return 0;
}
template<class idtype>
idtype mat<idtype>::det()
{if(nbln==nbcol){
if(nbln==2)
return (data[0][0] * data[1][1])-(data[1][0] * data[0][1]);
else
{
idtype somme=0;
for(int i=0;i<nbcol;i++)
{mat<idtype> tmp(this);
tmp.delln(0);
tmp.delcol(i);
somme+=pow(-1,i) * data[0][i] * tmp.det();
}
return somme;
}}
else return 0;
}
template<class idtype>
mat<idtype>& mat<idtype>::cof()
{
if(nbln==nbcol)
{
mat<idtype>* ptr=new mat<idtype>(nbln,nbcol);
idtype* tab=new idtype[nbcol];
for(int i=0;i<nbln;i++)
{
for(int j=0;j<nbcol;j++)
{
mat<idtype> tmp(this);
tmp.delln(i);
tmp.delcol(j);
tab[j]=(pow(-1,i+j)* tmp.det());
}
ptr->addln(tab);
}
delete[] tab;
return *ptr;
}
else return *this;
}
template<class idtype>
mat<idtype>& mat<idtype>::inv()
{
if(nbln==nbcol)
{
mat<idtype>* ptr=&((*this).trans().cof().mul(1/this->det()));
return *ptr;
}
else return *this;
}
template<class idtype>
int mat<idtype>::getnbcol()
{
return nbcol;
}
Conclusion
On a là un fichier d'entête (.h) faut juste mettre le code dans un fichier .h etl'inclure dans le code de votre programme.
Sources du même auteur
Sources de la même categorie
Commentaires et avis
Discussions en rapport avec ce code source dans le forum
Problème pour dériver une classe [ par arc59 ]
J'ai créé une classe Matrice comportant des fonctions get_ele, set_ele (toutes les 2 sont "virtual") et la redéfinition de l'opérateur +.Dans ma class
fichier.h [ par bidules ]
Bonjour,j'aimerais savoir s'il est possible de mettre des structures dans un fichier d'entete.Car j'ai fais l'essai mais lors de la compilation pour c
PB de matrice [ par limax84 ]
J'ai un probleme d'allocation dynamique de memoire pour une matrice.pour un tableau, je procede comme ceci:int * t;t = new int [30];mais pour une matr
matrice carréé [ par justeroland ]
j'ai besoin de l'aide au sujet de l'exercice suivant: une matrice carré est dite balancée si les sommes des elements de ses quatre triangles sont égal
les fonctions et le Math [ par djamine ]
beh bonsoir les programmeurs j'ai une problemeje veux en utilisant la formuletan x=2t/1-(t au carré) avec t=tg x/2et le fait que si x est petit par ex
Besoin d'aide en C - Fonction [ par bugs2600 ]
Voici mon programme quelqu'un pourrait-il m'aider je dois faire une fonction et je ne vois pas comment la faire le non de ma fonction doit etre PRODMA
une matrice de taille quelconque [ par anaisa ]
salut tt le monde saurez vous m'aidez à résoudre un petit probleme: je dois programmé la somme, produit de matrices de taille quelconque en langage C
Coord 2D to 3D [ par bat67000 ]
Comment optenir d'un point 2D sur l'app les coordonnees du point 3D associé avec la matrice de projection ?(je pige pas bien comment fonctionne la mat
Matrice constante. [ par nsoualem ]
j'ai crée une classe matrice avec un constructeurdu type:matrice(int nbligne,int nbcolonne)...elle marche a merveille!!!Lors de la création d'un code,
inverse de matrice dynamique [ par anaisa ]
Aidez nous please c pr programmer en langage Votre texte ICIC l inverse de la matrice dynamique merci bcp !!!!!!
|
Derniers Blogs
UNE JOLIE-HORLOGE ET PAS QU'UN PEU !UNE JOLIE-HORLOGE ET PAS QU'UN PEU ! par neodante
Pour les possesseurs d'iPhone, ça y est Bijin Tokei - qui se traduit littéralement en Français par " Jolie Horloge " - est arrivé et GRATUITEMENT s'il vous plaît ! Après la version Tokyo, Hokkaido, night club, racing, Gal, "pour les mademoiselles'", . voi...
Cliquez pour lire la suite de l'article par neodante TECHDAYS PARIS 2010 : CONNECTEZ VOS DONNéES à SHAREPOINT 2010 AVEC LES BUSINESS CONNECTIVITY SERVICESTECHDAYS PARIS 2010 : CONNECTEZ VOS DONNéES à SHAREPOINT 2010 AVEC LES BUSINESS CONNECTIVITY SERVICES par ROMELARD Fabrice
Animé par: Gaetan Bouveret et Julien Chomarat Business Connectivity Services (BCS) est dans SharePoint 2010 la version 2 de Business Data Catalog (BDC dans SharePoint 2007). Il s'agit de la solution permettant de visualiser des données provenan...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice [DIVERS] SUIVRE VOS SéRIES PRéFéRéS SUR LA TOILE[DIVERS] SUIVRE VOS SéRIES PRéFéRéS SUR LA TOILE par orion
Comme de nombreux geek, je suis un grand amateur de série TV et je rate régulièrement des épisodes de mes séries préférés. Une solution s'offre à vous avec ce merveilleux site : Tv Gorge - www.tvgorge.com Moteur de recherche à l'appui, vous pouvez ...
Cliquez pour lire la suite de l'article par orion TECHDAYS PARIS 2010 : LA BI DANS SHAREPOINT 2010TECHDAYS PARIS 2010 : LA BI DANS SHAREPOINT 2010 par ROMELARD Fabrice
Animé par: Vincent Bellet et Baptiste Giraudier La BI dans SharePoint 2010, Les nouveaux services d'application dans SP2010 et SQL Server Reporting services 2008 R2. La BI dans SharePoint est généralisée pour tous afin de permettre à tous les coll...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice
Forum
RE : WIN APIRE : WIN API par racpp
Cliquez pour lire la suite par racpp
Logiciels
DB-MAIN (9.1.0)DB-MAIN (9.1.0)DB-MAIN is a data-modeling and data-architecture tool. It is designed to help developers and anal... Cliquez pour télécharger DB-MAIN Xilisoft DPG Convertisseur (5.1.37.0120)XILISOFT DPG CONVERTISSEUR (5.1.37.0120)Xilisoft DPG Convertisseur offre aux fans de Nintendo DS une bonne solution leur permettant de dé... Cliquez pour télécharger Xilisoft DPG Convertisseur GraphicsGale (2.01.01)GRAPHICSGALE (2.01.01)GraphicsGale est un logiciel de PixelArt avec de nombreuse fonctionnalités permettant de réalisé ... Cliquez pour télécharger GraphicsGale Architecte 3D (Platinum 2010)ARCHITECTE 3D (PLATINUM 2010)Architecte 3D Platinium vous permet de concevoir facilement les plans votre future maison, de l'é... Cliquez pour télécharger Architecte 3D TeamViewer 5 (TeamViewer 5)TEAMVIEWER 5 (TEAMVIEWER 5)Dépanner un ami,expliquer une manipulation devient un jeu d'enfant.
Prise en main d'un autre ord... Cliquez pour télécharger TeamViewer 5
|