SPIKE: Have ts2mod use suffwdpass and sufrevpass rather than sufrev#768
SPIKE: Have ts2mod use suffwdpass and sufrevpass rather than sufrev#768awf wants to merge 1 commit into
suffwdpass and sufrevpass rather than sufrev#768Conversation
|
The issue here is the tensor-of-tuples in the return type. We currently only support a small number of tensor types, listed in Clearly we can't just keep adding to this list, especially when we have complex implementation-defined structures like the one here. But there's also a further problem in that our implementation of It's not actually clear to me what we would want this binding to look like. Do we want to copy the result into python objects, or create a python wrapper for a C++ object, or have some combination of the two depending on the element types? Maybe this needs some discussion/investigation. Once we've decided what should happen I suspect it's possible to get pybind11 to do what we want, perhaps by implementing a |
sufrev
sufrevsuffwdpass and sufrevpass rather than sufrev
suffwdpass and sufrevpass rather than sufrevsuffwdpass and sufrevpass rather than sufrev
Currently, given knossos function
We implement (in
ts2ks.*_template) the forward pass by callingfoo, and the reverse by calling[sufrev foo]. We should change to[suffwdpass foo]and[sufrevpass foo].A current blocking issue, which @dcrc2 may have an idea on: pybind11