help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: oct file: multiply a matrix by a vector


From: Brian Blais
Subject: Re: oct file: multiply a matrix by a vector
Date: Sat, 02 Jul 2005 15:31:02 -0400
User-agent: Mozilla Thunderbird 0.8 (X11/20040913)

Robert A. Macy wrote:
Will that be faster than...

function matout=elementdivide(mat1,mat2);
%  proper checks
[rowsmat1,columnsmat1]=size(mat1);
matout=mat1./(ones(rowsmat1,1)*mat2);


perhaps, but this isn't the only thing I am doing in the oct file, so I don't want to call a .m file from with C++ because I imagine I will take a pretty severe time penalty for that.


                        bb

--
-----------------

            address@hidden
            http://web.bryant.edu/~bblais



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]