Function sequant::detail::broadcast_operand_tensor¶
Defined in File utils.cpp
Function Documentation¶
-
const Tensor *sequant::detail::broadcast_operand_tensor(const Expr &operand)¶
- Throws:
Exception – if
operandhas 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:
operanditself, the base of a TensorPower, or the one such factor of a Product with scalars; nullptr ifoperandis a scalar