From 806ccd889c3e28fb91eb75eb6c0157637dcdcdfe Mon Sep 17 00:00:00 2001 From: jofret Date: Mon, 21 Jun 2010 12:40:11 +0000 Subject: Manage Hypermatrix insertion with one coordinate --- src/c/operations/interfaces/int_OpIns.h | 96 ++++++++++++++++++--------------- 1 file changed, 54 insertions(+), 42 deletions(-) (limited to 'src/c/operations/interfaces/int_OpIns.h') diff --git a/src/c/operations/interfaces/int_OpIns.h b/src/c/operations/interfaces/int_OpIns.h index 6f6d0227..5d3798da 100644 --- a/src/c/operations/interfaces/int_OpIns.h +++ b/src/c/operations/interfaces/int_OpIns.h @@ -1,15 +1,16 @@ /* -** -*- C -*- -** -** -** Made by Raffaele.Nutricato@tiscali.it -** -** Copyright Raffaele Nutricato -*/ - -/* - Modify by Arnaud Torset : 20/02/09 -*/ + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2009 - POLIBA - Raffaele NUTRICATO + * Copyright (C) 2009 - INRIA - Arnaud TORSET + * Copyright (C) 2010-2010 - DIGITEO - Bruno JOFRET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + * + */ #ifndef __OPINS_H__ #define __OPINS_H__ @@ -24,6 +25,10 @@ #define z2d0z0OpIns(in,size,indice,newVal) in[(int) indice-1]=newVal; +#define s3s0s0OpIns(in,size,indice,newVal) in[(int) indice-1]=newVal; + +#define d3d0d0OpIns(in,size,indice,newVal) in[(int) indice-1]=newVal; + /* a([1 2])=2 */ #define s2s2s0OpIns(in,size1,indices,size2,newVal) {int i;\ for (i=0;i ok, we just have put the imaginary part to 0 we assign a complex in a real array => ko, we can't enlarge the input matrix. So we just replace by the real part of the complex */ @@ -220,8 +225,8 @@ #define z2d2d0OpIns(in,size1,indices,size2,newVal) z2d2z0OpIns(in,size1,indices,size2,DoubleComplex(newVal,0)) - -/* a([1 2])=[3,1] */ + +/* a([1 2])=[3,1] */ #define s2s2c2OpIns(in,size1,indices,size2,newVals,size3) {int i;\ for (i=0;i