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