xtensor-stack / xtensor-julia Goto Github PK
View Code? Open in Web Editor NEWJulia bindings for xtensor
Home Page: http://quantstack.net/xtensor
License: BSD 3-Clause "New" or "Revised" License
Julia bindings for xtensor
Home Page: http://quantstack.net/xtensor
License: BSD 3-Clause "New" or "Revised" License
Or inherit Julia info from the JlCxx target.
Hi,
I was wondering if we could talk about packaging for julia inside the conda-forge framework.
@mkitti and I from the julia-feedstock are trying to figure out what people really want and how we can help.
We recently did some housekeeping and fixes and we would like your input.
In your readme here: https://github.com/xtensor-stack/xtensor-julia#installation-of-the-julia-package, there are some typos. It should be conda install xtensor-julia -c conda-forge
The assignment operation, i.e.,
xt::jltensor<double, 1> test(xt::jltensor<double, 1> u) {
xt::jltensor<double, 1> f = u;
return f;
}
cannot be performed in-place through
void test(xt::jltensor<double, 1> f, xt::jltensor<double, 1> u) {
f = u;
}
This is understandable since the argument is value instead of the reference.
Is there a workaround for the in-place mutation?
edit: an explicit for-loop can do this
void test1([T](xt::jltensor<double, 1> f, xt::jltensor<double, 1> u) {
int nu = u.shape(0);
for (int i = 0; i < nu; i++) {
f[i] = u[i];
}
}
But is there an easier way?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.