Re: Fortran vs C++ for scientific computing




Ben Hetland wrote:

<snip>

So here's perhaps where my knowledge of "practical Fortran" is limited.
I know you can operate very easily of arrays in F90, but I didn't know
that an expression like for instance A*B for two two-dimensional arrays
A and B really corresponded to a matrix multiplication. Please enlighten me!

A*B performs element-wise multiplication, and matmul(A,B) does matrix
multiplication. One can define operators so that A .x. B performs
matrix multiplication.

.



Relevant Pages

  • Re: blas, sgemm, cffi
    ... Am I right, that in LLA you copy lisp arrays to foreign, apply foreign ... matrix multiplication". ...
    (comp.lang.lisp)
  • Re: Newbie question about numpy
    ... I noted the lack of matrices so installed numpy ... numpy arrays are not matrices; ... There is a matrix class ) that derives from arrays and overrides the * operator to do matrix multiplication if that is what you want. ... "I have come to believe that the whole world is an enigma, a harmless enigma ...
    (comp.lang.python)
  • Re: Putting together a larger matrix from smaller matrices
    ... which e.g. changes the meaning of the * operator ... mean indicate matrix multiplication. ... NumPy we use different classes for arrays and matrices. ...
    (comp.lang.python)
  • Re: Newbie question
    ... from pylab import * ... the problem is that * does not do matrix multiplication; ... "I have come to believe that the whole world is an enigma, a harmless enigma ...
    (comp.lang.python)
  • Re: Matrix Multiplication
    ... that F90 has that as an intrinsic which will be as efficient or not as ... If they can come up with a marvelous solution, I would like to see it. ... To the Fortran camp, this article: ... Discusses matrix multiplication. ...
    (sci.math.num-analysis)