rowwise function

rowwise functions for collections of spectra