Comments (2)
Hi @chuang05! Sadly, no. And I do not plan to implement it explicitly. If you would like to perfom calculations in 2D you would have to
1. "expand" your input arrays to 3D,
2. convert it to tensors,
3. do all calculations you would like to,
4. convert your tensors back to arrays,
5. slice arrays to fit 2D array dimensions.
So step 1. and 5. are additionally needed compared to 3D calculations. Of course there is some overhead inside the 3D tensor operations.
You could write your own "as2darray" function similar to "as Array".
Hope that helps.!
Best regards, Andreas
from ttb.
Hi @chuang05! Sadly, no. And I do not plan to implement it explicitly. If you would like to perfom calculations in 2D you would have to
1. "expand" your input arrays to 3D,
2. convert it to tensors,
3. do all calculations you would like to,
4. convert your tensors back to arrays,
5. slice arrays to fit 2D array dimensions.So step 1. and 5. are additionally needed compared to 3D calculations. Of course there is some overhead inside the 3D tensor operations.
You could write your own "as2darray" function similar to "as Array".
Hope that helps.!
Best regards, Andreas
OK, I see, thank you very much!
from ttb.
Related Issues (20)
- Cannot read uppercase extensions .F in Ubuntu HOT 6
- ttb compatibility with default r8 HOT 3
- Cmake/Makefile for ttb HOT 3
- Questions about unfixed bugs
- Collection of Figures HOT 2
- Enhance `libpower.f` HOT 1
- Inner-crossed dyadic product of two sym. tensors can't be stored as a 6x6 fourth-order tensor HOT 2
- Rebase hardcoded fourth-order `identity4(T)` tensor on `cdya(T, T)` HOT 1
- Crossed-dyadic product is wrong HOT 1
- Link to Example 3 is broken
- Assign a scalar multiplies the scalar with the array items
- Initialisation of tensor components to zero HOT 2
- Add unit tests HOT 1
- umat_nh_ttb_simple.f does not work in Abaqus HOT 7
- Collection of Ideas for the Documentation
- Docs are broken HOT 4
- Implement Polar decomposition HOT 5
- Wrong orientation of the Rotation Matrix
- Old unused print statement in `sqrt_2()`
- Enhance the docs
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 ttb.