use std max instead
preliminary trsm.h