Skip to content

Commit 69a483f

Browse files
authored
Merge branch 'main' into html-doc-depth
2 parents 450b532 + b172e75 commit 69a483f

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
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

docs/source/sptensor.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
pyttb.sptensor
22
----------------------
33

4-
.. autoclass:: pyttb.sptensor
4+
.. automodule:: pyttb.sptensor
55
:members:
66
:special-members:
77
:exclude-members: __dict__, __weakref__, __slots__, __init__

docs/source/tensor.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
pyttb.tensor
22
--------------------
33

4-
.. autoclass:: pyttb.tensor
4+
.. automodule:: pyttb.tensor
55
:members:
66
:special-members:
7-
:exclude-members: __dict__, __weakref__, __slots__, __init__
7+
:exclude-members: __dict__, __weakref__, __slots__, __init__, mttv_left, mttv_mid, mttv_right, min_split
88
:show-inheritance:

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)