home *** CD-ROM | disk | FTP | other *** search
/ APDL Eductation Resources / APDL Eductation Resources.iso / programs / electronic / rlab / TestMatrix / skewpart_r < prev    next >
Encoding:
Text File  |  1994-05-25  |  665 b   |  23 lines

  1. //-------------------------------------------------------------------//
  2.  
  3. // Synopsis:    Skew-symmetric (skew-Hermitian) part.
  4.  
  5. // Syntax:    S = skewpart ( A )
  6.  
  7. // Description:
  8.  
  9. //    S is the skew-symmetric (skew-Hermitian) part of A, (A - A')/2.
  10. //    It is the nearest skew-symmetric (skew-Hermitian) matrix to A
  11. //    in both the 2- and the Frobenius norms. 
  12.  
  13. //    This file is a translation of skewpart.m from version 2.0 of
  14. //    "The Test Matrix Toolbox for Matlab", described in Numerical
  15. //    Analysis Report No. 237, December 1993, by N. J. Higham.
  16.  
  17. //-------------------------------------------------------------------//
  18.  
  19. skewpart = function ( A )
  20. {
  21.   return (A - A')./2;
  22. };
  23.