Lambdify in symbolic module

Importing required modules

import sympy
from sympy import symbols
from einsteinpy.symbolic import BaseRelativityTensor


Calculating a Base Relativity Tensor

syms = symbols("x y")
x, y = syms
T = BaseRelativityTensor([[x, 1],[0, x+y]], syms, config="ll")

Calling the lambdify function

args, func = T.tensor_lambdify()
$\displaystyle \left( x, \ y\right)$

args indicates the order in which arguments should be passed to the returned function func

Executing the returned function for some value

func(2, 1)
$\displaystyle \left[ \left[ 2, \ 1\right], \ \left[ 0, \ 3\right]\right]$