Tensors, as I understand, are a sort of functions that contain information on how to transform a set of vectors and dual vectors, represented by a matrix. However, what I don't understand is the differing notation used to represent them. For example, I've seen both
$g_{\mu \nu} = \begin{pmatrix}-1 && 0 &&0&&0\\0&&1&&0&&0\\0&&0&&1&&0\\0&&0&&0&&1 \end{pmatrix} \tag*{}$
i.e., the metric tensor, denoted with the indices below, and other tensors denoted, say, $T^{\mu \nu}$ or $T^{\mu}{}_{\nu}$. These would transform different types, as in, two vectors ($g_{\mu \nu}$), two dual vectors, or a vector and a dual vector. I'm unable to understand how to, given a tensor, rearrange the components to form other tensors, say take $g_{\mu \nu}$ and find $g^{\mu}{}_{\nu}$, $g^{\mu \nu}$, or even $g_{\mu}{}^{\nu}$ for example. How would one do this?