einsums::compute_graph::resolve_scalar_operand#
Note
Generated from the C++ headers by apiary --emit-cpp-docs-json.
Defined in header Einsums/ComputeGraph/ExecutorBuilder.hpp.
-
ScalarAccessor resolve_scalar_operand(Graph &graph, TensorId id, std::string_view context, const char *role)#
Bind a
ScalarAccessortoid, or explain why it cannot be bound.- Parameters:
graph – Graph the id belongs to.
id – The scalar destination.
context – Caller name for the diagnostic, e.g.
"build_executor(Dot)".role – The operand’s role in that caller, e.g.
"result".
- Throws:
std::invalid_argument – When
idnames no tensor, or names one with neither rank-erased geometry nor a registered address.- Returns:
A bound accessor.