Difference between revisions of "Polyadic/inflate.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Add NOTOC to Spinach function page header)
(Update function See also links and function index membership)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{DISPLAYTITLE:polyadic/inflate.m}} __NOTOC__
 
{{DISPLAYTITLE:polyadic/inflate.m}} __NOTOC__
−
Converts a polyadic representation of a matrix into a sparse matrix.
+
Converts a polyadic matrix representation into a sparse matrix by opening all Kronecker products while preserving the sparse type when some cores are sparse.
  
 
==Syntax==
 
==Syntax==
Line 6: Line 6:
 
     answer=inflate(p)
 
     answer=inflate(p)
  
−
==Description==
+
==Parameters==
−
The function opens up all the Kronecker products while preserving the sparse type if some cores are sparse.
 
−
 
 
−
==Arguments==
 
  
 
     p - a polyadic object
 
     p - a polyadic object
Line 19: Line 16:
  
 
==See also==
 
==See also==
−
[[polyadic.m]], [[polyadic/full.m]], [[polyadic/kron.m]]
+
[[polyadic.m]], [[polyadic/full.m]], [[polyadic/kron.m]], [[polinfo.m]], [[polyadic/allfinite.m]], [[polyadic/ctranspose.m]], [[polyadic/gpuArray.m]], [[polyadic/isempty.m]], [[polyadic/minus.m]], [[polyadic/mtimes.m]], [[polyadic/nnz.m]], [[polyadic/plus.m]], [[polyadic/polinfo.m]], [[polyadic/prefix.m]], [[polyadic/simplify.m]], [[polyadic/size.m]], [[polyadic/suffix.m]], [[polyadic/transpose.m]], [[polyadic/validate.m]], [[Tensor_train_module]]
  
 
''Version 2.1, authors: [[Ilya Kuprov]]''
 
''Version 2.1, authors: [[Ilya Kuprov]]''

Latest revision as of 19:39, 6 June 2026

Converts a polyadic matrix representation into a sparse matrix by opening all Kronecker products while preserving the sparse type when some cores are sparse.

Syntax

    answer=inflate(p)

Parameters

    p - a polyadic object

Outputs

    answer - a sparse matrix, except if prefixes or suffixes
             are full, in which case a full matrix is returned

See also

polyadic.m, polyadic/full.m, polyadic/kron.m, polinfo.m, polyadic/allfinite.m, polyadic/ctranspose.m, polyadic/gpuArray.m, polyadic/isempty.m, polyadic/minus.m, polyadic/mtimes.m, polyadic/nnz.m, polyadic/plus.m, polyadic/polinfo.m, polyadic/prefix.m, polyadic/simplify.m, polyadic/size.m, polyadic/suffix.m, polyadic/transpose.m, polyadic/validate.m, Tensor_train_module

Version 2.1, authors: Ilya Kuprov