Accept different dimensions in sum() etc.
forgot end in export
typo
export
DataOrMatrix