Home > atmlab > handy > flat.m

flat

PURPOSE ^

Small helper function to flatten an array without storing intermediate

SYNOPSIS ^

function A = flat(M)

DESCRIPTION ^

 Small helper function to flatten an array without storing intermediate

 This is a tiny helper function that lets one flatten the result of an
 operation without needing to store the result in an intermediate
 variable.  It's normally used in the context of a

 EXAMPLE

   answers{ii} = flat(self.overall_limitators{ii}(M_coll_part));

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

flat.m

SOURCE CODE ^

0001 function A = flat(M)
0002 
0003 % Small helper function to flatten an array without storing intermediate
0004 %
0005 % This is a tiny helper function that lets one flatten the result of an
0006 % operation without needing to store the result in an intermediate
0007 % variable.  It's normally used in the context of a
0008 %
0009 % EXAMPLE
0010 %
0011 %   answers{ii} = flat(self.overall_limitators{ii}(M_coll_part));
0012 
0013 % $Id: flat.m 8343 2013-04-17 09:42:14Z gerrit $
0014 
0015 A = M(:);
0016 
0017 end

Generated on Mon 15-Sep-2014 13:31:28 by m2html © 2005