Function sequant::detail::broadcast_operand_tensor

Function Documentation

const Tensor *sequant::detail::broadcast_operand_tensor(const Expr &operand)
Throws:

Exception – if operand has more than one non-scalar factor or a non-scalar that is neither a Tensor nor a TensorPower

Returns:

the tensor that the operand of a broadcast carries: operand itself, the base of a TensorPower, or the one such factor of a Product with scalars; nullptr if operand is a scalar