1#ifndef ADOLC_TAPE_INTERFACE_H
2#define ADOLC_TAPE_INTERFACE_H
47 size_t vbs,
size_t tbs,
int skipFileCleanup);
114ADOLC_API inline std::array<size_t, TapeInfos::STAT_SIZE>
117 std::array<size_t, TapeInfos::STAT_SIZE> stats;
157 const auto &tape =
findTape(tapeId);
175ADOLC_API inline void setTapeInfoJacSparse(
short tapeId,
176 SparseJacInfos &&sJInfos) {
177 findTape(tapeId).setTapeInfoJacSparse(std::move(sJInfos));
189ADOLC_API inline void setTapeInfoHessSparse(
short tapeId,
190 SparseHessInfos &&sHInfos) {
191 findTape(tapeId).setTapeInfoHessSparse(std::move(sHInfos));
223ADOLC_API inline void setHP(
short tapeId,
int indep,
224 std::vector<uint *> &&HPIn) {
225 SparseHessInfos sHinfos;
226 sHinfos.setHP(indep, std::move(HPIn));
227 findTape(tapeId).setTapeInfoHessSparse(std::move(sHinfos));
255ADOLC_API inline std::vector<uint *> getHP(
short tapeId) {
256 return findTape(tapeId).sHInfos().getHP();
#define CURRENT_LOCATION
Definition adolcerror.h:26
#define ADOLC_API
Definition adolcexport.h:16
Owns one recorded function and the state required to evaluate it.
Definition valuetape.h:79
void nestedReverseEval(bool flag)
Definition valuetape.h:427
void tapestats(std::array< size_t, TapeInfos::STAT_SIZE > stats)
Definition valuetape.h:325
size_t get_num_param()
Definition valuetape.h:424
void ADOLC_API fail(ErrorType error, const source_location LocInfo, const FailInfo &failinfo=FailInfo())
Definition adtl_indo.h:46
Additional typed fields used when formatting an ADOL-C failure.
Definition adolcerror.h:225
short info1
Definition adolcerror.h:226
@ NUM_SWITCHES
Definition tapeinfos.h:44
@ NO_MIN_MAX
Definition tapeinfos.h:43
ADOLC_API std::array< size_t, TapeInfos::STAT_SIZE > tapestats(short tapeId)
Writes the tapestats of the tape into an array.
Definition tape_interface.h:115
ADOLC_API void cachedTraceTags(std::vector< short > &result)
Writes the tapeIds of the tapes stored in the thread-local tapeBuffer in result
ADOLC_API void nestedReverseEval(short tapeId, bool flag)
Marks whether reverse evaluation of this tape is nested inside an outer tape evaluation.
Definition tape_interface.h:87
ADOLC_API int trace_on(short tapeId, int keepTaylors=0)
Initializes taping for the given tapeId.
ADOLC_API void trace_off(int flag=0)
Stops the current tracing session and handles the tape.
ADOLC_API size_t get_num_switches(short tapeId)
Returns the number of switching variables recorded on tape.
Definition tape_interface.h:156
ADOLC_API void printTapeStats(short tapeId)
Prints the stats of the tape.
ADOLC_API size_t get_num_param(short tapeId)
Returns the number of parameters recorded on tape.
Definition tape_interface.h:141
ADOLC_API ValueTape & findTape(short tapeId)
Returns a reference to a ValueTape by tapeId, or throws an error if not found.