Comments (4)
and the leci_four is
// definition of epsilon_{mu,nu}, the whole anti-symmetric tensor
Tensor<double, 4, 4, 4, 4> leci_four()
{
Tensor<double, 4, 4, 4, 4> leci;
leci.zeros();
leci(0, 1, 2, 3) = 1.;
leci(0, 1, 3, 2) = -1.;
leci(0, 3, 1, 2) = 1.;
leci(3, 0, 1, 2) = -1.;
leci(3, 0, 2, 1) = 1.;
leci(0, 3, 2, 1) = -1.;
leci(0, 2, 3, 1) = 1.;
leci(0, 2, 1, 3) = -1.;
leci(2, 0, 1, 3) = 1.;
leci(2, 0, 3, 1) = -1.;
leci(2, 3, 0, 1) = 1.;
leci(3, 2, 0, 1) = -1.;
leci(3, 2, 1, 0) = 1.;
leci(2, 3, 1, 0) = -1.;
leci(2, 1, 3, 0) = 1.;
leci(2, 1, 0, 3) = -1.;
leci(1, 2, 0, 3) = 1.;
leci(1, 2, 3, 0) = -1.;
leci(1, 3, 2, 0) = 1.;
leci(3, 1, 2, 0) = -1.;
leci(3, 1, 0, 2) = 1.;
leci(1, 3, 0, 2) = -1.;
leci(1, 0, 3, 2) = 1.;
leci(1, 0, 2, 3) = -1.;
return leci;
}
i think it may have symmetry
from fastor.
What are the functions TT1
and TT2
and how does your main function that calls the function phif222
look like?
And what is the problem exactly? Does it not compile, or does it crash or do you get incorrect results?
from fastor.
sorry , my exactly question is : how to use einsum to calculate the function
how to determine the index order ? and
from fastor.
i have solve my problem . and i thank if can determin the index of output , it will more easy to use the einsum . now i must to control the order of input to control the index of output .
from fastor.
Related Issues (20)
- Implementation of tensor with variable sizes HOT 2
- Why Tensor's have this exact size? HOT 2
- Multiplying a complex tensor with a complex number gives zero HOT 1
- ARM Support? HOT 1
- einsum can't handle big tensor and get stack overflow HOT 1
- [feature] Support for tensor fields. HOT 1
- Tensor network contraction fails
- Another Operation on Tensor View Bug HOT 2
- Seg Fault when attempting broadcast. HOT 1
- [Feature Request] Constexpr Tensor HOT 3
- Inner product between 2 matrices HOT 1
- Support for apple's M1
- Python interfacer
- New minor release HOT 1
- How should I understood "Compile time operation minimisation such as graph optimisation, greedy matrix-chain products and nearly symbolic manipulations to reduce the complexity of evaluation of BLAS or non-BLAS type expressions by orders of magnitude" HOT 1
- Alternative einsum syntax using UDLs and tag dispatch HOT 2
- Build fails on PPC: simd_vector_scalar.h: error: assignment of read-only location '* data' HOT 2
- Variables in constructor do not compile HOT 2
- Is it possible to access a particular row or column of matrix and perform operation on it only HOT 1
- Pivoting speed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastor.