Skip to content

Commit

Permalink
Merge pull request #10 from lanl/develop
Browse files Browse the repository at this point in the history
Re-organize the Numpy and PyTorch Backend. Add remaining of the tensor utilities.
  • Loading branch information
MaksimEkin authored Nov 13, 2021
2 parents 803662e + f72d75c commit f3ea13d
Show file tree
Hide file tree
Showing 130 changed files with 15,939 additions and 2,540 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ python setup.py install
- seaborn>=0.11.1
- torch>=1.6.0
- requests>=2.25.1
- tqdm>=4.62.3
- sparse>=0.13.0

## Example Usage
```python
Expand Down
100 changes: 57 additions & 43 deletions docs/CP_APR.html

Large diffs are not rendered by default.

78 changes: 50 additions & 28 deletions docs/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Overview: module code &#8212; pyCP_APR 1.0.0 documentation</title>

<link href="../_static/css/theme.css" rel="stylesheet" />
<link href="../_static/css/index.c5995385ac14fb8791e8eb36b4908be2.css" rel="stylesheet" />
<link href="../_static/css/theme.css" rel="stylesheet">
<link href="../_static/css/index.ff1ffe594081f20da1ef19478df9384b.css" rel="stylesheet">


<link rel="stylesheet"
Expand All @@ -22,21 +22,24 @@



<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/sphinx-book-theme.acff12b8f9c144ce68a297486a2fa670.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../_static/sphinx-book-theme.css?digest=c3fdc42140077d1ad13ad2f1588a4309" />
<link rel="stylesheet" type="text/css" href="../_static/graphviz.css" />

<link rel="preload" as="script" href="../_static/js/index.1c5a1a01449ed65a7b51.js">
<link rel="preload" as="script" href="../_static/js/index.be7d3bbb2ef33a8344ce.js">

<script id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script>
<script src="../_static/jquery.js"></script>
<script src="../_static/underscore.js"></script>
<script src="../_static/doctools.js"></script>
<script src="../_static/sphinx-book-theme.12a9622fbb08dcb3a2a40b2c02b83a57.js"></script>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="docsearch:language" content="en" />
<meta name="docsearch:language" content="Python">


<!-- Google Analytics -->

</head>
<body data-spy="scroll" data-target="#bd-toc-nav" data-offset="80">
Expand All @@ -54,15 +57,16 @@
<a class="navbar-brand text-wrap" href="../index.html">



<h1 class="site-logo" id="site-title">pyCP_APR 1.0.0 documentation</h1>

</a>
</div><form class="bd-search d-flex align-items-center" action="../search.html" method="get">
<i class="icon fas fa-search"></i>
<input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" >
</form><nav class="bd-links" id="bd-docs-nav" aria-label="Main navigation">
</form><nav class="bd-links" id="bd-docs-nav" aria-label="Main">
<div class="bd-toc-item active">
<p class="caption">
<p aria-level="2" class="caption" role="heading">
<span class="caption-text">
Contents:
</span>
Expand Down Expand Up @@ -104,13 +108,13 @@ <h1 class="site-logo" id="site-title">pyCP_APR 1.0.0 documentation</h1>
</a>
</li>
<li class="toctree-l3">
<a class="reference internal" href="../pyCP_APR.numpy_cp.html">
pyCP_APR.numpy_cp package
<a class="reference internal" href="../pyCP_APR.numpy_backend.html">
pyCP_APR.numpy_backend package
</a>
</li>
<li class="toctree-l3">
<a class="reference internal" href="../pyCP_APR.torch_cp.html">
pyCP_APR.torch_cp package
<a class="reference internal" href="../pyCP_APR.torch_backend.html">
pyCP_APR.torch_backend package
</a>
</li>
</ul>
Expand Down Expand Up @@ -181,28 +185,47 @@ <h1>All modules for which code is available</h1>
<li><a href="pyCP_APR/applications/tensor_anomaly_detection.html">pyCP_APR.applications.tensor_anomaly_detection</a></li>
<li><a href="pyCP_APR/applications/tensor_anomaly_detection_v2.html">pyCP_APR.applications.tensor_anomaly_detection_v2</a></li>
<li><a href="pyCP_APR/datasets.html">pyCP_APR.datasets</a></li>
<li><a href="pyCP_APR/numpy_cp/CP_APR.html">pyCP_APR.numpy_cp.CP_APR</a></li>
<li><a href="pyCP_APR/numpy_cp/ktensor.html">pyCP_APR.numpy_cp.ktensor</a></li>
<li><a href="pyCP_APR/numpy_cp/sptensor.html">pyCP_APR.numpy_cp.sptensor</a></li>
<li><a href="pyCP_APR/numpy_cp/tenmat.html">pyCP_APR.numpy_cp.tenmat</a></li>
<li><a href="pyCP_APR/numpy_cp/tensor.html">pyCP_APR.numpy_cp.tensor</a></li>
<li><a href="pyCP_APR/numpy_backend/CP_APR.html">pyCP_APR.numpy_backend.CP_APR</a></li>
<li><a href="pyCP_APR/numpy_backend/accum.html">pyCP_APR.numpy_backend.accum</a></li>
<li><a href="pyCP_APR/numpy_backend/arrange_ktensor.html">pyCP_APR.numpy_backend.arrange_ktensor</a></li>
<li><a href="pyCP_APR/numpy_backend/double_ktensor.html">pyCP_APR.numpy_backend.double_ktensor</a></li>
<li><a href="pyCP_APR/numpy_backend/fixsigns_ktensor.html">pyCP_APR.numpy_backend.fixsigns_ktensor</a></li>
<li><a href="pyCP_APR/numpy_backend/innerprod_ktensor.html">pyCP_APR.numpy_backend.innerprod_ktensor</a></li>
<li><a href="pyCP_APR/numpy_backend/ipermute_tensor.html">pyCP_APR.numpy_backend.ipermute_tensor</a></li>
<li><a href="pyCP_APR/numpy_backend/khatrirao_ktensor.html">pyCP_APR.numpy_backend.khatrirao_ktensor</a></li>
<li><a href="pyCP_APR/numpy_backend/khatrirao_sptensor.html">pyCP_APR.numpy_backend.khatrirao_sptensor</a></li>
<li><a href="pyCP_APR/numpy_backend/ktensor.html">pyCP_APR.numpy_backend.ktensor</a></li>
<li><a href="pyCP_APR/numpy_backend/norm_ktensor.html">pyCP_APR.numpy_backend.norm_ktensor</a></li>
<li><a href="pyCP_APR/numpy_backend/normalize_ktensor.html">pyCP_APR.numpy_backend.normalize_ktensor</a></li>
<li><a href="pyCP_APR/numpy_backend/permute_ktensor.html">pyCP_APR.numpy_backend.permute_ktensor</a></li>
<li><a href="pyCP_APR/numpy_backend/permute_tensor.html">pyCP_APR.numpy_backend.permute_tensor</a></li>
<li><a href="pyCP_APR/numpy_backend/redistribute_ktensor.html">pyCP_APR.numpy_backend.redistribute_ktensor</a></li>
<li><a href="pyCP_APR/numpy_backend/sptensor.html">pyCP_APR.numpy_backend.sptensor</a></li>
<li><a href="pyCP_APR/numpy_backend/tenmat_ktensor.html">pyCP_APR.numpy_backend.tenmat_ktensor</a></li>
<li><a href="pyCP_APR/numpy_backend/tenmat_sptensor.html">pyCP_APR.numpy_backend.tenmat_sptensor</a></li>
<li><a href="pyCP_APR/numpy_backend/tenmat_tensor.html">pyCP_APR.numpy_backend.tenmat_tensor</a></li>
<li><a href="pyCP_APR/numpy_backend/tensor.html">pyCP_APR.numpy_backend.tensor</a></li>
<li><a href="pyCP_APR/numpy_backend/tt_dimscheck.html">pyCP_APR.numpy_backend.tt_dimscheck</a></li>
<li><a href="pyCP_APR/numpy_backend/ttm_sptensor.html">pyCP_APR.numpy_backend.ttm_sptensor</a></li>
<li><a href="pyCP_APR/numpy_backend/ttm_tensor.html">pyCP_APR.numpy_backend.ttm_tensor</a></li>
<li><a href="pyCP_APR/numpy_backend/ttv_sptensor.html">pyCP_APR.numpy_backend.ttv_sptensor</a></li>
<li><a href="pyCP_APR/numpy_backend/ttv_tensor.html">pyCP_APR.numpy_backend.ttv_tensor</a></li>
<li><a href="pyCP_APR/pyCP_APR.html">pyCP_APR.pyCP_APR</a></li>
<li><a href="pyCP_APR/torch_cp/CP_APR_Torch.html">pyCP_APR.torch_cp.CP_APR_Torch</a></li>
<li><a href="pyCP_APR/torch_cp/ktensor_Torch.html">pyCP_APR.torch_cp.ktensor_Torch</a></li>
<li><a href="pyCP_APR/torch_cp/sptensor_Torch.html">pyCP_APR.torch_cp.sptensor_Torch</a></li>
<li><a href="pyCP_APR/torch_backend/CP_APR_Torch.html">pyCP_APR.torch_backend.CP_APR_Torch</a></li>
<li><a href="pyCP_APR/torch_backend/ktensor_Torch.html">pyCP_APR.torch_backend.ktensor_Torch</a></li>
<li><a href="pyCP_APR/torch_backend/sptensor_Torch.html">pyCP_APR.torch_backend.sptensor_Torch</a></li>
</ul>

</div>


<div class='prev-next-bottom'>


</div>
<!-- Previous / next buttons -->
<div class='prev-next-area'>
</div>

</div>
</div>
<footer class="footer mt-5 mt-md-0">
<footer class="footer">
<div class="container">
<p>

Expand All @@ -218,8 +241,7 @@ <h1>All modules for which code is available</h1>
</div>
</div>

<script src="../_static/js/index.1c5a1a01449ed65a7b51.js"></script>
<script src="../_static/js/index.be7d3bbb2ef33a8344ce.js"></script>


</body>
</html>
42 changes: 22 additions & 20 deletions docs/_modules/pyCP_APR/applications/ktensor_utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>pyCP_APR.applications.ktensor_utils &#8212; pyCP_APR 1.0.0 documentation</title>

<link href="../../../_static/css/theme.css" rel="stylesheet" />
<link href="../../../_static/css/index.c5995385ac14fb8791e8eb36b4908be2.css" rel="stylesheet" />
<link href="../../../_static/css/theme.css" rel="stylesheet">
<link href="../../../_static/css/index.ff1ffe594081f20da1ef19478df9384b.css" rel="stylesheet">


<link rel="stylesheet"
Expand All @@ -22,21 +22,24 @@



<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../../../_static/sphinx-book-theme.acff12b8f9c144ce68a297486a2fa670.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../../../_static/sphinx-book-theme.css?digest=c3fdc42140077d1ad13ad2f1588a4309" />
<link rel="stylesheet" type="text/css" href="../../../_static/graphviz.css" />

<link rel="preload" as="script" href="../../../_static/js/index.1c5a1a01449ed65a7b51.js">
<link rel="preload" as="script" href="../../../_static/js/index.be7d3bbb2ef33a8344ce.js">

<script id="documentation_options" data-url_root="../../../" src="../../../_static/documentation_options.js"></script>
<script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script>
<script src="../../../_static/jquery.js"></script>
<script src="../../../_static/underscore.js"></script>
<script src="../../../_static/doctools.js"></script>
<script src="../../../_static/sphinx-book-theme.12a9622fbb08dcb3a2a40b2c02b83a57.js"></script>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="docsearch:language" content="en" />
<meta name="docsearch:language" content="Python">


<!-- Google Analytics -->

</head>
<body data-spy="scroll" data-target="#bd-toc-nav" data-offset="80">
Expand All @@ -54,15 +57,16 @@
<a class="navbar-brand text-wrap" href="../../../index.html">



<h1 class="site-logo" id="site-title">pyCP_APR 1.0.0 documentation</h1>

</a>
</div><form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
<i class="icon fas fa-search"></i>
<input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" >
</form><nav class="bd-links" id="bd-docs-nav" aria-label="Main navigation">
</form><nav class="bd-links" id="bd-docs-nav" aria-label="Main">
<div class="bd-toc-item active">
<p class="caption">
<p aria-level="2" class="caption" role="heading">
<span class="caption-text">
Contents:
</span>
Expand Down Expand Up @@ -104,13 +108,13 @@ <h1 class="site-logo" id="site-title">pyCP_APR 1.0.0 documentation</h1>
</a>
</li>
<li class="toctree-l3">
<a class="reference internal" href="../../../pyCP_APR.numpy_cp.html">
pyCP_APR.numpy_cp package
<a class="reference internal" href="../../../pyCP_APR.numpy_backend.html">
pyCP_APR.numpy_backend package
</a>
</li>
<li class="toctree-l3">
<a class="reference internal" href="../../../pyCP_APR.torch_cp.html">
pyCP_APR.torch_cp package
<a class="reference internal" href="../../../pyCP_APR.torch_backend.html">
pyCP_APR.torch_backend package
</a>
</li>
</ul>
Expand Down Expand Up @@ -238,14 +242,13 @@ <h1>Source code for pyCP_APR.applications.ktensor_utils</h1><div class="highligh
</div>


<div class='prev-next-bottom'>


</div>
<!-- Previous / next buttons -->
<div class='prev-next-area'>
</div>

</div>
</div>
<footer class="footer mt-5 mt-md-0">
<footer class="footer">
<div class="container">
<p>

Expand All @@ -261,8 +264,7 @@ <h1>Source code for pyCP_APR.applications.ktensor_utils</h1><div class="highligh
</div>
</div>

<script src="../../../_static/js/index.1c5a1a01449ed65a7b51.js"></script>
<script src="../../../_static/js/index.be7d3bbb2ef33a8344ce.js"></script>


</body>
</html>
42 changes: 22 additions & 20 deletions docs/_modules/pyCP_APR/applications/sptensor_utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>pyCP_APR.applications.sptensor_utils &#8212; pyCP_APR 1.0.0 documentation</title>

<link href="../../../_static/css/theme.css" rel="stylesheet" />
<link href="../../../_static/css/index.c5995385ac14fb8791e8eb36b4908be2.css" rel="stylesheet" />
<link href="../../../_static/css/theme.css" rel="stylesheet">
<link href="../../../_static/css/index.ff1ffe594081f20da1ef19478df9384b.css" rel="stylesheet">


<link rel="stylesheet"
Expand All @@ -22,21 +22,24 @@



<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../../../_static/sphinx-book-theme.acff12b8f9c144ce68a297486a2fa670.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../../../_static/sphinx-book-theme.css?digest=c3fdc42140077d1ad13ad2f1588a4309" />
<link rel="stylesheet" type="text/css" href="../../../_static/graphviz.css" />

<link rel="preload" as="script" href="../../../_static/js/index.1c5a1a01449ed65a7b51.js">
<link rel="preload" as="script" href="../../../_static/js/index.be7d3bbb2ef33a8344ce.js">

<script id="documentation_options" data-url_root="../../../" src="../../../_static/documentation_options.js"></script>
<script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script>
<script src="../../../_static/jquery.js"></script>
<script src="../../../_static/underscore.js"></script>
<script src="../../../_static/doctools.js"></script>
<script src="../../../_static/sphinx-book-theme.12a9622fbb08dcb3a2a40b2c02b83a57.js"></script>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="docsearch:language" content="en" />
<meta name="docsearch:language" content="Python">


<!-- Google Analytics -->

</head>
<body data-spy="scroll" data-target="#bd-toc-nav" data-offset="80">
Expand All @@ -54,15 +57,16 @@
<a class="navbar-brand text-wrap" href="../../../index.html">



<h1 class="site-logo" id="site-title">pyCP_APR 1.0.0 documentation</h1>

</a>
</div><form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
<i class="icon fas fa-search"></i>
<input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" >
</form><nav class="bd-links" id="bd-docs-nav" aria-label="Main navigation">
</form><nav class="bd-links" id="bd-docs-nav" aria-label="Main">
<div class="bd-toc-item active">
<p class="caption">
<p aria-level="2" class="caption" role="heading">
<span class="caption-text">
Contents:
</span>
Expand Down Expand Up @@ -104,13 +108,13 @@ <h1 class="site-logo" id="site-title">pyCP_APR 1.0.0 documentation</h1>
</a>
</li>
<li class="toctree-l3">
<a class="reference internal" href="../../../pyCP_APR.numpy_cp.html">
pyCP_APR.numpy_cp package
<a class="reference internal" href="../../../pyCP_APR.numpy_backend.html">
pyCP_APR.numpy_backend package
</a>
</li>
<li class="toctree-l3">
<a class="reference internal" href="../../../pyCP_APR.torch_cp.html">
pyCP_APR.torch_cp package
<a class="reference internal" href="../../../pyCP_APR.torch_backend.html">
pyCP_APR.torch_backend package
</a>
</li>
</ul>
Expand Down Expand Up @@ -281,14 +285,13 @@ <h1>Source code for pyCP_APR.applications.sptensor_utils</h1><div class="highlig
</div>


<div class='prev-next-bottom'>


</div>
<!-- Previous / next buttons -->
<div class='prev-next-area'>
</div>

</div>
</div>
<footer class="footer mt-5 mt-md-0">
<footer class="footer">
<div class="container">
<p>

Expand All @@ -304,8 +307,7 @@ <h1>Source code for pyCP_APR.applications.sptensor_utils</h1><div class="highlig
</div>
</div>

<script src="../../../_static/js/index.1c5a1a01449ed65a7b51.js"></script>
<script src="../../../_static/js/index.be7d3bbb2ef33a8344ce.js"></script>


</body>
</html>
Loading

0 comments on commit f3ea13d

Please sign in to comment.