matrices; convex functions