I saw the following definition for the partial trace operator:
$\rho_A=\sum_k \langle e_k|\rho_{AB}|e_k\rangle$, where $e_k$ is basis for the state space of system $B$.
From what I know, in the Dirac notation, the meaning of $\langle v|A|u\rangle$ is the inner product of the vectors $|v\rangle$ and $A|u\rangle$, so I have two problems with this notation of the partial trace.
First, how can an inner product be an operator? An inner product should be a complex number, so I guess that inner product represents an operator somhow.
Second, what is the meaning of $\rho_{AB}|e_k\rangle$? $\rho_{AB}$ is a mapping on the space $A\otimes B$, but $e_k$ is a vector from the space $B$. So, I don't really know how to interpret the meaning of this notation.