On (conditional) positive semidefiniteness in a matrix-valued context