Maximization and minimization of the principal eigenvalue of the Laplacian with indefinite weight under Dirichlet and Robin boundary conditions on classes of rearrangements | Synapse