Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How can I reshape matrix 1xn to matrix sqrt(n)xsqrt(n) ?

//transpose Mat det0 = Mat(d1); Mat dt1; dt1 = det0.reshape(0,4); cout << " Sebelum transpose "<<det0 &lt;<endl;="" cout="" &lt;&lt;="" "coba"="" &lt;&lt;="" dt1="" &lt;<endl;<="" p="">

click to hide/show revision 2
No.2 Revision

updated 2017-01-20 06:50:24 -0600

berak gravatar image

How can I reshape matrix 1xn to matrix sqrt(n)xsqrt(n) ?

 //transpose 
        Mat det0 = Mat(d1);
        Mat dt1;
        dt1 = det0.reshape(0,4);
        cout << " Sebelum transpose "<<det0 &lt;<endl;="" cout="" &lt;&lt;="" "coba"="" &lt;&lt;="" dt1="" &lt;<endl;<="" p="">

<<endl; cout << "coba" << dt1 <<endl;

How can I reshape matrix 1xn to matrix sqrt(n)xsqrt(n) ?

 //transpose 
     Mat det0 = Mat(d1);
     Mat dt1;
     dt1 = det0.reshape(0,4);
     cout << " Sebelum transpose "<<det0 <<endl;
     cout << "coba" << dt1 <<endl;

How can I reshape matrix 1xn to matrix sqrt(n)xsqrt(n) ?

I have matrix 1x16. I will reshape this matrix to 4x4. How can I reshape this matrix? I just use this code the program was break.

 //transpose 
    Mat det0 = Mat(d1);
    Mat dt1;
    dt1 = det0.reshape(0,4);
    cout << " Sebelum transpose "<<det0 <<endl;
    cout << "coba" << dt1 <<endl;

`

How can I reshape matrix 1xn to matrix sqrt(n)xsqrt(n) ?

I have matrix 1x16. I will reshape this matrix to 4x4. How can I reshape this matrix? I just use this code code, but the program was break.

//transpose 
    Mat det0 = Mat(d1);
    Mat dt1;
    dt1 = det0.reshape(0,4);
    cout << " Sebelum transpose "<<det0 <<endl;
    cout << "coba" << dt1 <<endl;

`