User GuideΒΆ
To use the library, simply include/import cytnx.
In Python, using import:
1import cytnx
In C++, using the include header:
1#include "cytnx.hpp";
Note
In C++, there is a namespace cytnx.
Aliases in Python modules and C++ namespaces can be used equivalently, for example if we want to alias cytnx as cy,
In Python:
1import cytnx as cy
This is equivalent in C++ to:
In C++:
1#include "cytnx.hpp";
2namespace cy=cytnx;
Now we are ready to start using cytnx!
Continue reading:
- 1. Objects behavior
- 2. Device
- 3. Tensor
- 4. Storage
- 5. Scalar
- 6. Tensor notation
- 7. UniTensor
- 8. Contraction
- 9. Linear algebra
- 10. Iterative solver
- 11. linalg extension
- 12. Common APIs