Localized and Distributed Beyond Diagonal Reconfigurable Intelligent Surfaces With Lossy Interconnections: Modeling and Optimization | IEEE Journals & Magazine | IEEE Xplore