Re: [OctDev] Sparse matrix assign problem

2010-12-27 Thread David Bateman
Søren Hauberg wrote: > Sorry if I came off a bit harsh in my previous mail. > > I had a quick look at your code; I can tell you what the problem is, but > I cannot tell you how to solve as I don't know what your code is > supposed to do and I don't know the SparseMatrix class very well > (perhaps o

Re: [OctDev] Sparse matrix assign problem

2010-12-27 Thread Søren Hauberg
Sorry if I came off a bit harsh in my previous mail. I had a quick look at your code; I can tell you what the problem is, but I cannot tell you how to solve as I don't know what your code is supposed to do and I don't know the SparseMatrix class very well (perhaps other people on the list can help

Re: [OctDev] Sparse matrix assign problem

2010-12-27 Thread w4nderlust
Sorry for everything, i'm attaching the full code. to compile i simply did call: mkoctfile spmaxmin_ST.cc and to run it i reated 2 sparse matrices A and B and then: tic; spmaxmin_ST(A, B); toc; 2010/12/27 Søren Hauberg : > Hi > > Some practical comments: > >      * Please keep the list CC'ed (pr

Re: [OctDev] Sparse matrix assign problem

2010-12-27 Thread Søren Hauberg
Hi Some practical comments: * Please keep the list CC'ed (press reply to all) instead of just sending me a private mail; that way others can help. * If you send code, please send ALL relevant code. The code you send does NOT compile (you have not included relevant head

Re: [OctDev] Possible bug in houghtf function

2010-12-27 Thread Søren Hauberg
Hi man, 27 12 2010 kl. 16:28 +0100, skrev Simon Börjesson: > For example, when I run the following code several times in a row, I get > different results even though the input should be exactly the same as far as > I can tell. > > %%% testing.m %%% > clear I J > > I = zeros(100,100

[OctDev] Possible bug in houghtf function

2010-12-27 Thread Simon Börjesson
Hi, I get strange results when I use the houghtf function from the image package (tested with version 1.0.10 on windows and 1.0.12 on Ubuntu) with GNU Octave Version 3.2.4. For example, when I run the following code several times in a row, I get different results even though the input should

Re: [OctDev] Sparse matrix assign problem

2010-12-27 Thread Søren Hauberg
man, 27 12 2010 kl. 15:37 +0100, skrev w4nderlust: > Hello everyone. > Compiling an octfile i'm experiencing a compile error. > spmaxmin_ST.cc:62: error: lvalue required as left operand of assignment > > that's how my code works: > //i create a sparse matrix > SparseMatrix c = SparseMatrix(rowsA,

[OctDev] Sparse matrix assign problem

2010-12-27 Thread w4nderlust
Hello everyone. Compiling an octfile i'm experiencing a compile error. spmaxmin_ST.cc:62: error: lvalue required as left operand of assignment that's how my code works: //i create a sparse matrix SparseMatrix c = SparseMatrix(rowsA, colsB, rowsA*colsB); //i create a constart temp matrix as sugges