We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, thanks for this fantastic library!
In order to make this work:
Tensor<dtype> N(n_spin, len_N); N.fill_random(0.0,1.0); dtype scal(0,2.*M_PI); auto f = Endomorphism<dtype>([](dtype a){ return exp(a);}); N.scale(scal, idxi, f);
I had to apply this patch:
--- a/src/interface/tensor.cxx +++ b/src/interface/tensor.cxx @@ -1770,7 +1770,7 @@ NORM_INFTY_INST(double) void Tensor<dtype>::scale(dtype alpha, const char * idx_A, Endomorphism<dtype> fseq){ - CTF_int::scaling scl = CTF_int::scaling(this, idx_A, &fseq, (char const *)&alpha); + CTF_int::scaling scl = CTF_int::scaling(this, idx_A, (char const *)&alpha, &fseq); scl.execute(); }
Is this a bug or I'm using it wrong?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, thanks for this fantastic library!
In order to make this work:
I had to apply this patch:
Is this a bug or I'm using it wrong?
The text was updated successfully, but these errors were encountered: