home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- 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
- From: ciemo@bananapc.csd.sgi.com (Dave Ciemiewicz)
- Subject: Re: matrix class in C++
- Message-ID: <1992Nov17.050752.14929@odin.corp.sgi.com>
- Sender: news@odin.corp.sgi.com (Net News)
- Nntp-Posting-Host: bananapc.csd.sgi.com
- Organization: Silicon Graphics, Customer Support Division
- References: <34113@adm.brl.mil>
- Date: Tue, 17 Nov 1992 05:07:52 GMT
- Lines: 29
-
- In article <34113@adm.brl.mil>, rose@baby.swmed.utexas.edu (Rose Oguz) writes:
- |> I haven't seen any mention of a matrix class in C++. I have no information
- |> that tells me that there should be. I just assume that matrices/2D arrays
- |> are commonly used and there would a class definition. All I have found is
- |> a complex class and a vector class. Any chance that I missed the matrix
- |> class?
- |>
- |> Rose
- |>
-
- Nope, there isn't one. Some people out there may have written some but there
- isn't one that comes with the C++ compiler. The Vector and Complex classes
- are just traditional C++ classes that were created by AT&T to demonstrate
- classes as much as anything else. It is pretty obvious how a Complex class
- can be used to demonstrate overloading of operators such as operator+().
- Notice that the term "vector" is use more in a data structure sense by the
- Vector classes than in the sense of a vector used in linear algebra. I think
- the name was chosen to avoid confusion with intrinsic "array" structures.
-
- Writing your own Matrix class was left as an exercise to the user by
- Stroustrup and company.
-
- --
-
- __ * __ _ __ ___
- / \ / / / / \/ \/ \ He was a man like any other man, however, not
- / / \/ / /\ / / quite like any other man.
- \___/\__/\_/ /_/ / \__/
- *
-