Function Generalization

xtensors.generalize_at_0(func: Callable[Concatenate[XTensor, O], R]) Callable[Concatenate[TensorLike, O], R]

Generalize the first argument of a function from accepting XTensor to TensorLike objects

xtensors.generalize_at_1(func: Callable[Concatenate[T, XTensor, O], R]) Callable[Concatenate[T, TensorLike, O], R]

Generalize the second argument of a function

xtensors.generalize_at_2(func: Callable[Concatenate[T, U, XTensor, O], R]) Callable[Concatenate[T, U, TensorLike, O], R]

Generalize the third argument of a function

xtensors.generalize_at_3(func: Callable[Concatenate[T, U, V, XTensor, O], R]) Callable[Concatenate[T, U, V, TensorLike, O], R]

Generalize the fourth argument of a function