updated custom kernel sum methods with linalg sum methods