Transponeeritud maatriks: erinevus redaktsioonide vahel

Eemaldatud sisu Lisatud sisu
Resümee puudub
428. rida:
== C++ mall ==
<source lang="cpp">
#include <vector>
template <class tyyp>
using namespace std;
typedef vector< vector<tyyp> > Maatriks;
 
template<class tyyp> void xorVahetus(tyyp& x, tyyp& y){
if (x != y) {
*x ^= *y;
438. rida:
}
}
 
template<class tyyp> void Transponeeri(Maatriksvector< vector<tyyp> >& m){
tyyp s = m.size();
for(tyyp i = 0;i < s; ++i){