A basic tensor interface