~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to macros/util/%p_sum.sci

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
function a=%p_sum(a,flag)
 
2
// Copyright INRIA
 
3
[m,n]=size(a);
 
4
if flag==1|flag=='r' then
 
5
  a=ones(1,m)*a;
 
6
elseif flag==2|flag=='c' then
 
7
  a=a*ones(n,1);
 
8
end