added activation functions to linear algebra api