## spSisestaArv.m
function spA=spSisestaArv(spA,iv,jv,sv)
# 
# Inserted the nunber into sparse matrix spA, 
# starting at row index iv and column index jv.
#
##=========================================================================
## This Program is written by Andres Lahe,   2010-03-22
##                    e-mail: andres.lahe@ttu.ee
## LAST MODIFIED: Andres Lahe,   2010-06-21
## Copyright (c)  2010 by Tallinn University of Technology 
##                Department of Mechanics
##                http://www.ttu.ee/
##
## This program is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License
## as published by the Free Software Foundation; either version 2
## of the License, or (at your option) any later version.

## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.

## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
## http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
##==========
##
#%%%%%%%%%%%%%%%%%
if nargin<4, 
error(' function InsertBtoA have wrong number of input arguments!') 
end
if nargin>4, 
error(' function InsertBtoA have wrong number of input arguments!') 
end
#
##
 sisse=sparse(1,1,sv);
 spA=spInsertBtoA(spA,iv,jv,sv);
endfunction
