Self-consistent first-principles technique with linear scaling | Synapse