Template functions, .det(), .det(p), norms