home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / sgi / 16524 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.8 KB  |  42 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!spool.mu.edu!sgiblab!sgigate!odin!bananapc.csd.sgi.com!ciemo
  3. From: ciemo@bananapc.csd.sgi.com (Dave Ciemiewicz)
  4. Subject: Re: matrix class in C++
  5. Message-ID: <1992Nov17.050752.14929@odin.corp.sgi.com>
  6. Sender: news@odin.corp.sgi.com (Net News)
  7. Nntp-Posting-Host: bananapc.csd.sgi.com
  8. Organization: Silicon Graphics, Customer Support Division
  9. References:  <34113@adm.brl.mil>
  10. Date: Tue, 17 Nov 1992 05:07:52 GMT
  11. Lines: 29
  12.  
  13. In article <34113@adm.brl.mil>, rose@baby.swmed.utexas.edu (Rose Oguz) writes:
  14. |> I haven't seen any mention of a matrix class in C++.  I have no information
  15. |> that tells me that there should be.  I just assume that matrices/2D arrays
  16. |> are commonly used and there would a class definition.  All I have found is
  17. |> a complex class and a vector class.  Any chance that I missed the matrix
  18. |> class?
  19. |> 
  20. |> Rose
  21. |> 
  22.  
  23. Nope, there isn't one.  Some people out there may have written some but there
  24. isn't one that comes with the C++ compiler. The Vector and Complex classes
  25. are just traditional C++ classes that were created by AT&T to demonstrate
  26. classes as much as anything else.  It is pretty obvious how a Complex class
  27. can be used to demonstrate overloading of operators such as operator+().
  28. Notice that the term "vector" is use more in a data structure sense by the
  29. Vector classes than in the sense of a vector used in linear algebra.  I think
  30. the name was chosen to avoid confusion with intrinsic "array" structures.
  31.  
  32. Writing your own Matrix class was left as an exercise to the user by
  33. Stroustrup and company.
  34.  
  35. -- 
  36.  
  37.     __   * __   _  __  ___            
  38.    /  \ / / /  / \/  \/   \     He was a man like any other man, however, not
  39.   /    /  \/  /  /\  /    /    quite like any other man.
  40.   \___/\__/\_/  /_/ / \__/    
  41.                *        
  42.