C-XSC - A C++ Class Library for Extended Scientific Computing  2.5.4
ivecrmat.hpp
1 /*
2 ** CXSC is a C++ library for eXtended Scientific Computing (V 2.5.4)
3 **
4 ** Copyright (C) 1990-2000 Institut fuer Angewandte Mathematik,
5 ** Universitaet Karlsruhe, Germany
6 ** (C) 2000-2014 Wiss. Rechnen/Softwaretechnologie
7 ** Universitaet Wuppertal, Germany
8 **
9 ** This library is free software; you can redistribute it and/or
10 ** modify it under the terms of the GNU Library General Public
11 ** License as published by the Free Software Foundation; either
12 ** version 2 of the License, or (at your option) any later version.
13 **
14 ** This library is distributed in the hope that it will be useful,
15 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 ** Library General Public License for more details.
18 **
19 ** You should have received a copy of the GNU Library General Public
20 ** License along with this library; if not, write to the Free
21 ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 */
23 
24 /* CVS $Id: ivecrmat.hpp,v 1.26 2014/01/30 17:23:45 cxsc Exp $ */
25 
26 // Here are definitions for ivector x rmatrix-Functions
27 #ifndef _CXSC_IVECRMAT_HPP_INCLUDED
28 #define _CXSC_IVECRMAT_HPP_INCLUDED
29 
30 namespace cxsc {
31 
33  INLINE ivector _ivector(const rmatrix &sl)
34 #if(CXSC_INDEX_CHECK)
35  throw(ERROR_RMATRIX_TYPE_CAST_OF_THICK_OBJ);
36 #else
37  throw();
38 #endif
39  INLINE ivector _ivector(const rmatrix_slice &sl)
41 #if(CXSC_INDEX_CHECK)
42  throw(ERROR_RMATRIX_TYPE_CAST_OF_THICK_OBJ);
43 #else
44  throw();
45 #endif
46 
48  void accumulate(idotprecision &dp, const rmatrix_subv & rv1, const ivector &rv2)
49 #if(CXSC_INDEX_CHECK)
50  throw(OP_WITH_WRONG_DIM);
51 #else
52  throw();
53 #endif
54  void accumulate(idotprecision &dp, const ivector & rv1, const rmatrix_subv &rv2)
56 #if(CXSC_INDEX_CHECK)
57  throw(OP_WITH_WRONG_DIM);
58 #else
59  throw();
60 #endif
61  void accumulate(cidotprecision &dp, const rmatrix_subv & rv1, const ivector &rv2)
63 #if(CXSC_INDEX_CHECK)
64  throw(OP_WITH_WRONG_DIM);
65 #else
66  throw();
67 #endif
68  void accumulate(cidotprecision &dp, const ivector & rv1, const rmatrix_subv &rv2)
70 #if(CXSC_INDEX_CHECK)
71  throw(OP_WITH_WRONG_DIM);
72 #else
73  throw();
74 #endif
75  void accumulate(idotprecision &dp, const rmatrix_subv & rv1, const ivector_slice &rv2)
77 #if(CXSC_INDEX_CHECK)
78  throw(OP_WITH_WRONG_DIM);
79 #else
80  throw();
81 #endif
82  void accumulate(idotprecision &dp, const ivector_slice & rv1, const rmatrix_subv &rv2)
84 #if(CXSC_INDEX_CHECK)
85  throw(OP_WITH_WRONG_DIM);
86 #else
87  throw();
88 #endif
89  void accumulate(cidotprecision &dp, const rmatrix_subv & rv1, const ivector_slice &rv2)
91 #if(CXSC_INDEX_CHECK)
92  throw(OP_WITH_WRONG_DIM);
93 #else
94  throw();
95 #endif
96  void accumulate(cidotprecision &dp, const ivector_slice & rv1, const rmatrix_subv &rv2)
98 #if(CXSC_INDEX_CHECK)
99  throw(OP_WITH_WRONG_DIM);
100 #else
101  throw();
102 #endif
103 
104 
106  INLINE void SetInf(ivector &iv,const rmatrix_subv &rv)
107 #if(CXSC_INDEX_CHECK)
108  throw(ERROR_IMATRIX_OP_WITH_WRONG_DIM);
109 #else
110  throw();
111 #endif
112  INLINE void SetSup(ivector &iv,const rmatrix_subv &rv)
114 #if(CXSC_INDEX_CHECK)
115  throw(ERROR_IMATRIX_OP_WITH_WRONG_DIM);
116 #else
117  throw();
118 #endif
119  INLINE void SetInf(ivector_slice &iv,const rmatrix_subv &rv)
121 #if(CXSC_INDEX_CHECK)
122  throw(ERROR_IMATRIX_OP_WITH_WRONG_DIM);
123 #else
124  throw();
125 #endif
126  INLINE void SetSup(ivector_slice &iv,const rmatrix_subv &rv)
128 #if(CXSC_INDEX_CHECK)
129  throw(ERROR_IMATRIX_OP_WITH_WRONG_DIM);
130 #else
131  throw();
132 #endif
133 
135  INLINE void UncheckedSetInf(ivector &iv,const rmatrix_subv &rv)
136 #if(CXSC_INDEX_CHECK)
137  throw(ERROR_IMATRIX_OP_WITH_WRONG_DIM);
138 #else
139  throw();
140 #endif
141  INLINE void UncheckedSetSup(ivector &iv,const rmatrix_subv &rv)
143 #if(CXSC_INDEX_CHECK)
144  throw(ERROR_IMATRIX_OP_WITH_WRONG_DIM);
145 #else
146  throw();
147 #endif
148  INLINE void UncheckedSetInf(ivector_slice &iv,const rmatrix_subv &rv)
150 #if(CXSC_INDEX_CHECK)
151  throw(ERROR_IMATRIX_OP_WITH_WRONG_DIM);
152 #else
153  throw();
154 #endif
155  INLINE void UncheckedSetSup(ivector_slice &iv,const rmatrix_subv &rv)
157 #if(CXSC_INDEX_CHECK)
158  throw(ERROR_IMATRIX_OP_WITH_WRONG_DIM);
159 #else
160  throw();
161 #endif
162 
163 
165  INLINE ivector operator *(const rmatrix &m,const ivector &v)
166 #if(CXSC_INDEX_CHECK)
167  throw(ERROR_RMATRIX_OP_WITH_WRONG_DIM);
168 #else
169  throw();
170 #endif
171  INLINE ivector operator *(const rmatrix_slice &ms,const ivector &v)
173 #if(CXSC_INDEX_CHECK)
174  throw(ERROR_RMATRIX_OP_WITH_WRONG_DIM);
175 #else
176  throw();
177 #endif
178  INLINE ivector operator *(const ivector &v,const rmatrix &m)
180 #if(CXSC_INDEX_CHECK)
181  throw(ERROR_RMATRIX_OP_WITH_WRONG_DIM);
182 #else
183  throw();
184 #endif
185  INLINE ivector operator *(const ivector &v,const rmatrix_slice &ms)
187 #if(CXSC_INDEX_CHECK)
188  throw(ERROR_RMATRIX_OP_WITH_WRONG_DIM);
189 #else
190  throw();
191 #endif
192  INLINE ivector &operator *=(ivector &v,const rmatrix &m)
194 #if(CXSC_INDEX_CHECK)
195  throw(ERROR_RMATRIX_OP_WITH_WRONG_DIM);
196 #else
197  throw();
198 #endif
199  INLINE ivector &operator *=(ivector &v,const rmatrix_slice &ms)
201 #if(CXSC_INDEX_CHECK)
202  throw(ERROR_RMATRIX_OP_WITH_WRONG_DIM);
203 #else
204  throw();
205 #endif
206 
208  INLINE ivector operator *(const ivector_slice &v,const rmatrix &m)
209 #if(CXSC_INDEX_CHECK)
210  throw(ERROR_RMATRIX_OP_WITH_WRONG_DIM);
211 #else
212  throw();
213 #endif
214 
215 } // namespace cxsc
216 
217 #endif
218 
The namespace cxsc, providing all functionality of the class library C-XSC.
Definition: cdot.cpp:29
civector operator*(const cimatrix_subv &rv, const cinterval &s)
Implementation of multiplication operation.
Definition: cimatrix.inl:731
INLINE ivector _ivector(const rmatrix &sl)
Deprecated typecast, which only exist for the reason of compatibility with older versions of C-XSC.
Definition: ivecrmat.inl:57
cimatrix & operator*=(cimatrix &m, const cinterval &c)
Implementation of multiplication and allocation operation.
Definition: cimatrix.inl:1605