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