upload TriMatrix