Comments (4)
Ah I see. It might not be a bad idea for a name, since Tensor
may clash with other packages. Some of the type names are already getting quite long as they are, though.
from ndtensors.jl.
Agreed, yes. Then I guess one immediate advantage is that something like a Vector{Index} or a Vector{MyType} where MyType is some type from an external library could work as the indices of a Tensor? (Btw I kept wanting to call it an “NDTensor” when writing the paper.)
from ndtensors.jl.
Yeah, though it wouldn't be a good idea to use Vector
as the storage, since that is not statically sized so the order of the Tensor wouldn't be inferable. SVector
or MVector
would be better examples of other storage to use. I was considering that we could limit the storage to be NTuple{N,IndT}
, since Tuple is a pretty generic format that statically sized containers are easily converted to (for example SVector
, MVector
and IndexSet
all have costless conversions to Tuple). This could be handled easily since the tensor(::ITensor)
conversion would convert the IndexSet
to an NTuple{N, Index}
, and the itensor(::Tensor)
would convert it back to an IndexSet
(that case is already handled now). It could make some of the code in NDTensors simpler, since now it needs to generically account for any storage type that inds
could have which makes for some ugly code in certain places. I don't expect people would be coming up with crazy storage types to use for inds
that couldn't just be converted to a Tuple.
I guess "NDTensor" could be used interchangeably with "NDTensors", like we will use "ITensor" interchangeably with "ITensors". In retrospect we could have called the package "NDTensor", since it doesn't clash with any actual type names in the package, but it just seemed natural to have the symmetry with "ITensors".
from ndtensors.jl.
That’s interesting about sticking just to NTuple. It makes a lot of sense if the code is having to do contortions to be overly generic.
Actually, I didn’t mean about renaming the package to NDTensor.jl - NDTensors is a good name -just I kept thinking the actual type is called NDTensor (so like T = NDTensor(3,4)).
from ndtensors.jl.
Related Issues (20)
- Improve Unit Tests HOT 1
- Make a lazily permuted Tensor wrapper
- Contraction logic optimizations
- Extend Spectrum definition HOT 1
- Small contraction optimizations HOT 1
- Remove extraneous functions from export list
- Replace `fullfidelity(::MPO, ::MPO)` with `fidelity(::ITensor, ::ITensor)` HOT 1
- Contracting DiagTensor with DenseTensor may be a bit slow HOT 2
- TagBot trigger issue HOT 21
- Use nonzeros as an alternative name for data HOT 1
- Drop zero blocks during uncombining
- Bug in DiagBlockSparseTensor show method
- NDTensors.jl incompatible with Optim.jl HOT 4
- Allow specifying the element type in `random_unitary`/`random_orthog`
- Introduce `setstorage` and `setinds`
- Use new `setstorage` and `setdata` to decrease code duplication across storage types HOT 1
- Simplify `contract!` overloading logic
- Change GEMM/matmul! backend switching interface
- Simplify `_contract_scalar!` logic by using `LoopVectorization.jl`
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 ndtensors.jl.