Path: utzoo!mnetor!tmsoft!torsqnt!jarvis.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!crdgw1!lamson From: lamson@sierra.crd.ge.com (scott h lamson) Newsgroups: comp.lang.fortran Subject: Re: Implied do-loop statement, for the next FORTRAN? Message-ID: Date: 6 Mar 90 14:15:34 GMT References: <14259@lambda.UUCP> <640@idacrd.UUCP> Sender: news@crdgw1.crd.ge.com Organization: GE Corporate Research & Development Lines: 24 In-reply-to: desj@idacrd.UUCP's message of 6 Mar 90 00:05:51 GMT In article <640@idacrd.UUCP> desj@idacrd.UUCP (David desJardins) writes: > From: desj@idacrd.UUCP (David desJardins) > From article <14259@lambda.UUCP>, by jlg@lambda.UUCP (Jim Giles): > > Why not just overload > > the multiply operator on MATRIX type variables and say: > > > > C = A*B > > > > and declare A, B, and C as type MATRIX? > Because this is already meaningful and does pointwise > multiplication. A * B is meaningful for ARRAYS as pointwise multiplication, but is not defined for the new derived type MATRIX unless you define it yourself or in a MODULE you are accessing. Of course, you do have to choose either pointwise multiplication or matrix multiplication. -- Scott| ARPA: lamson@crd.ge.com Lamson| UUCP: uunet!crd.ge.com!lamson (518)387-5795| UUCP: uunet!sierra.crd.ge.com!lamson