Define functions which take an existing tensor, and builds a zero matrix with the same shape and type as that input matrix.