Towards analog and digital hardware for support vector machines