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

« back to all changes in this revision

Viewing changes to macros/percent/%sp_i_s.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=%sp_i_s(i,j,b,a)
 
2
// %sp_i_s(i,j,b,a) insert sparse matrix b into full matrix a
 
3
// a(i,j)=b
 
4
//!
 
5
// Copyright INRIA
 
6
[lhs,rhs]=argn(0)
 
7
if rhs==4 then
 
8
  a(i,j)=full(b)
 
9
else
 
10
  a=b;//b=j
 
11
  a(i)=full(j)
 
12
end