help-octave
[Top][All Lists]
Advanced

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

Re: Odd sum() behavior


From: Cai Jianming
Subject: Re: Odd sum() behavior
Date: Tue, 16 Jan 2001 07:08:42 +0800

Hi,
   The attached patch will solve the "odd sum" behaviour. The problem was that there was a misunderstanding of what "dim" means. In fact,
  dim=0 means no arguments, i.e. sum(x)
  dim=1 means sum(x,1)
  dim=2 means sum(x,2)
 
   The patch changes: liboctave/dMatrix.cc, liboctave/CMatrix.cc, src/data.cc
 
Regards,
Jianming
 
 
 
 

Attachment: reduction_dim.patch
Description: Binary data


reply via email to

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