I learned that a Hermitian matrix $A$ is defined as a matrix that satisfies $$A^\dagger=(A^*)^\intercal=A,$$ i.e. its Hermitian conjugate $A^\dagger$ is the same as the original matrix $A$.
I also learned that in QM, a Hermitian operator $H$ is defined as an operator that satisfies $$ \langle f|Hg\rangle=\langle Hf|g\rangle,$$ where $f$ and $g$ are vectors.
Since operators and matrix can be represented by matrices in a particular basis, how can it be shown that a Hermitian matrix with the property $(A^*)^\intercal=A$ also satisfies $ \langle f|Ag\rangle=\langle Af|g\rangle$?