Home > manopt > tools > multiherm.m

multiherm

PURPOSE ^

Returns the Hermitian parts of the matrices in a 3D array

SYNOPSIS ^

function Y = multiherm(X)

DESCRIPTION ^

 Returns the Hermitian parts of the matrices in a 3D array

 function Y = multiherm(X)

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

   Y(:, :, i) = .5*(X(:, :, i) + X(:, :, i)')

 See also: multisym multiskew multiskewh multihconj multiprod multitransp multiscale

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function Y = multiherm(X)
0002 % Returns the Hermitian parts of the matrices in a 3D array
0003 %
0004 % function Y = multiherm(X)
0005 %
0006 % Y is a 3D array the same size as X. Each slice Y(:, :, i) is the
0007 % Hermitian part of the slice X(:, :, i), that is,
0008 %
0009 %   Y(:, :, i) = .5*(X(:, :, i) + X(:, :, i)')
0010 %
0011 % See also: multisym multiskew multiskewh multihconj multiprod multitransp multiscale
0012 
0013 % This file is part of Manopt: www.manopt.org.
0014 % Original author: Hiroyuki Sato, April 27, 2015.
0015 % Contributors:
0016 % Change log:
0017 
0018     Y = .5*(X + multihconj(X));
0019     
0020 end

Generated on Sun 05-Sep-2021 17:57:00 by m2html © 2005