A density matrix functional with occupation number driven treatment of dynamical and nondynamical correlation.