polyadic/inflate.m

From Spinach Documentation Wiki
Revision as of 16:03, 5 June 2026 by Kuprov (talk | contribs) (Spot-update function page against current Spinach source)
Jump to: navigation, search

Converts a polyadic representation of a matrix into a sparse matrix.

Syntax

    answer=inflate(p)

Description

The function opens up all the Kronecker products while preserving the sparse type if some cores are sparse.

Arguments

    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

Version 2.1, authors: Ilya Kuprov