Neuro-inspired computing enhanced by scalable algorithms and physics of emerging nanoscale resistive devices