spm_atranspa.m 714 B

12345678910111213141516171819202122
  1. function C = spm_atranspa(A)
  2. % Multiplies the transpose of a matrix by itself
  3. % FORMAT C = spm_atranspa(A)
  4. % A - real matrix
  5. % C - real symmetric matrix resulting from A'A
  6. %_______________________________________________________________________
  7. %
  8. % This compiled routine was written to save both memory and CPU time but
  9. % is now deprecated. Use A'*A directly instead.
  10. %_______________________________________________________________________
  11. % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging
  12. % John Ashburner
  13. % $Id: spm_atranspa.m 4418 2011-08-03 12:00:13Z guillaume $
  14. persistent runonce
  15. if isempty(runonce)
  16. warning('spm_atranspa is deprecated. Use A''*A instead.');
  17. runonce = 1;
  18. end
  19. C = A'*A;