Dual‐constrained and primal‐constrained principal component analysis