Nnz.m

From Spinach Documentation Wiki
Jump to: navigation, search

Number of nonzeros in all cores of a tensor train. Syntax:

                    answer=nnz(ttrain)