einsums::compute_graph::sum_python#
Note
Generated from the C++ headers by apiary --emit-cpp-docs-json.
Defined in header Einsums/ComputeGraph/Operations.hpp.
-
template<CoreBasicTensorConcept ResultType, CoreBasicTensorConcept AType>
requires (std::is_same_v<typename ResultType::ValueType, typename AType::ValueType>)
void sum_python(ResultType *result, const AType &A)# Graph-aware sum of every element, written into
result->data()[0].Mirrors dot_python’s scalar-into-[1]-tensor convention: eager when not capturing, an opaque
OpKind::Customnode otherwise. Stride-correct (works on slice/transpose views). Backs the numpy-styleA.sum()/A.mean().