Logistic Regression for dense matrices with supporting functions