Write a program that transposes a matrix of 32-bit floating point numbers on a GPU. The transpose of a matrix switches its rows and columns. Given a matrix \(A\) of dimensions \(rows \times cols\), the transpose \(A^T\) will have dimensions \(cols \times rows\). All matrices are stored in row-major format.
solve function signature must remain unchangedoutputInput: 2×3 matrix
\[ \begin{bmatrix} 1.0 & 2.0 & 3.0 \\ 4.0 & 5.0 & 6.0 \end{bmatrix} \]Output: 3×2 matrix
\[ \begin{bmatrix} 1.0 & 4.0 \\ 2.0 & 5.0 \\ 3.0 & 6.0 \end{bmatrix} \]Input: 3×1 matrix
\[ \begin{bmatrix} 1.0 \\ 2.0 \\ 3.0 \end{bmatrix} \]Output: 1×3 matrix
\[ \begin{bmatrix} 1.0 & 2.0 & 3.0 \end{bmatrix} \]rows, cols ≤ 8192rows × colscols × rowscols = 6,000, rows = 7,000