Open FROL256 opened 2 years ago
Hi @FROL256,
This works for me. Can you give a standalone example which crashes? I use Ubuntu clang version 12.0.1-++20210630032957+fed41342a82f-1~exp1~20210630133716.134
cat array.cpp
#include "clad/Differentiator/Differentiator.h"
void h(float a[3], float b, float output[]) {
output[0] = a[0] * a[0] * a[0];
output[1] = a[0] * a[0] * a[0] + b * b * b;
output[2] = 2 * (a[0] + b);
}
int main() {
auto dh = clad::gradient(h);
dh.dump();
return 0;
}
I can reproduce the crash if I change clad::gradient
to clad::jacobian
.
@Nirhar, can you take a look what is wrong here?
Hello! I took an example of jacobian from main page (h). If i make the first parameter array, clad crashes :(
Input:
Error:
PS: reproduces both with current version in master and release v0.9. Thank you very much! :)