Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nick/tenmat docs #294

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'main' into nick/tenmat_docs
# Conflicts:
#	pyttb/sptenmat.py
#	pyttb/tenmat.py
#	pyttb/tensor.py
#	tests/test_sptenmat.py
#	tests/test_tenmat.py
  • Loading branch information
ntjohnson1 committed Apr 11, 2024
commit 4f7bbcb52d32185d812fbe2231a39f425731bf06
15 changes: 0 additions & 15 deletions pyttb/tenmat.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,21 +291,6 @@ def double(self) -> np.ndarray:
"""
Convert a :class:`pyttb.tenmat` to an array of doubles.

Examples
--------
>>> T = ttb.tenones((2,2,2))
>>> TM = T.to_tenmat(rdims=np.array([0]))
>>> TM # doctest: +NORMALIZE_WHITESPACE
matrix corresponding to a tensor of shape (2, 2, 2)
rindices = [ 0 ] (modes of tensor corresponding to rows)
cindices = [ 1, 2 ] (modes of tensor corresponding to columns)
data[:, :] =
[[1. 1. 1. 1.]
[1. 1. 1. 1.]]
>>> TM.double() # doctest: +NORMALIZE_WHITESPACE
array([[1., 1., 1., 1.],
[1., 1., 1., 1.]])

Examples
--------
>>> T = ttb.tenones((2,2,2))
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.