Skip to content

Commit 4891d52

Browse files
authored
Merge branch 'main' into tensor-class-doc
2 parents 9e8764d + 2c1b883 commit 4891d52

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

docs/source/index.rst

+17-3
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,30 @@ pyttb: Python Tensor Toolbox
44
****************************
55
Tensors (also known as multidimensional arrays or N-way arrays) are used
66
in a variety of applications ranging from chemometrics to network
7-
analysis.
7+
analysis.
88

9-
- Install the latest release from pypi (``pip install pyttb``).
10-
- This is open source software. Please see `LICENSE`_ for the
9+
- This Python package is an adaptation of the open source `Tensor Toolbox for MATLAB <https://www.tensortoolbox.org>`_.
10+
- This is open source software. Please see `LICENSE <https://github.com/sandialabs/pyttb/blob/main/LICENSE>`_ for the
1111
terms of the license (2-clause BSD).
12+
- The pyttb code repository is hosted at `github <https://github.com/sandialabs/pyttb>`_.
13+
- Contributions are welcome; see `CONTRIBUTING <https://github.com/sandialabs/pyttb/blob/main/CONTRIBUTING.md>`_.
14+
- Reports of bugs and feature requests can be `submitted on github <https://github.com/sandialabs/pyttb/issues>`_.
1215
- For more information or for feedback on this project, please `contact us`_.
1316

1417
.. _`LICENSE`: ../../../LICENSE
1518
.. _contact us: #contact
1619

20+
21+
Installing
22+
==========
23+
24+
* Via pypi
25+
- Install the latest release from pypi (``pip install pyttb`` or ``python -m pip install pyttb``)
26+
* From source
27+
- Clone the repository from `github <https://github.com/sandialabs/pyttb>`_.
28+
- Install the package with ``pip install .`` from the pyttb root directory.
29+
- Note: Use ``pip install -e ".[dev,doc]"`` if you are planning development.
30+
1731
Functionality
1832
==============
1933
pyttb provides the following classes and functions

pyttb/tensor.py

-1
Original file line numberDiff line numberDiff line change
@@ -1391,7 +1391,6 @@ def symmetrize( # noqa: PLR0912,PLR0915
13911391
combos = []
13921392
for i in range(0, ngrps):
13931393
combos.append(np.array(list(permutations(grps[i, :]))))
1394-
combos = np.stack(combos)
13951394

13961395
# Create all the permutations to be averaged
13971396
combo_lengths = [len(perm) for perm in combos]

0 commit comments

Comments
 (0)