Home > manopt > tools > multisym.m

multisym

PURPOSE ^

Returns the symmetric parts of the matrices in the 3D matrix X

SYNOPSIS ^

function Y = multisym(X)

DESCRIPTION ^

 Returns the symmetric parts of the matrices in the 3D matrix X

 function Y = multisym(X)

 Y is a 3D matrix the same size as X. Each slice Y(:, :, i) is the
 symmetric part of the slice X(:, :, i).

 See also: multiprod multitransp multiscale multiskew

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function Y = multisym(X)
0002 % Returns the symmetric parts of the matrices in the 3D matrix X
0003 %
0004 % function Y = multisym(X)
0005 %
0006 % Y is a 3D matrix the same size as X. Each slice Y(:, :, i) is the
0007 % symmetric part of the slice X(:, :, i).
0008 %
0009 % See also: multiprod multitransp multiscale multiskew
0010 
0011 % This file is part of Manopt: www.manopt.org.
0012 % Original author: Nicolas Boumal, Jan. 31, 2013.
0013 % Contributors:
0014 % Change log:
0015 
0016     Y = .5*(X + multitransp(X));
0017     
0018 end

Generated on Sat 12-Nov-2016 14:11:22 by m2html © 2005