glycerol-1-phosphate dehydrogenase [NAD(P)+] activity
glycerol-1-phosphate dehydrogenase [nad(p)+] activity
Catalysis of the reaction: NAD(P)+ + sn-glycerol-1-phosphate = NAD(P)H + H+ + dihydroxy-acetone-phosphate.