Simbody  3.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SmallMatrix.h
Go to the documentation of this file.
1 #ifndef SimTK_SIMMATRIX_SMALLMATRIX_H_
2 #define SimTK_SIMMATRIX_SMALLMATRIX_H_
3 
4 /* -------------------------------------------------------------------------- *
5  * Simbody(tm): SimTKcommon *
6  * -------------------------------------------------------------------------- *
7  * This is part of the SimTK biosimulation toolkit originating from *
8  * Simbios, the NIH National Center for Physics-Based Simulation of *
9  * Biological Structures at Stanford, funded under the NIH Roadmap for *
10  * Medical Research, grant U54 GM072970. See https://simtk.org/home/simbody. *
11  * *
12  * Portions copyright (c) 2005-13 Stanford University and the Authors. *
13  * Authors: Michael Sherman *
14  * Contributors: *
15  * *
16  * Licensed under the Apache License, Version 2.0 (the "License"); you may *
17  * not use this file except in compliance with the License. You may obtain a *
18  * copy of the License at http://www.apache.org/licenses/LICENSE-2.0. *
19  * *
20  * Unless required by applicable law or agreed to in writing, software *
21  * distributed under the License is distributed on an "AS IS" BASIS, *
22  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
23  * See the License for the specific language governing permissions and *
24  * limitations under the License. *
25  * -------------------------------------------------------------------------- */
26 
88 #include "SimTKcommon/Scalar.h"
90 
91 
92 #include "SimTKcommon/internal/ResultType.h"
98 
99 // Friendly abbreviations.
100 namespace SimTK {
126 typedef Vec<2> Vec2;
129 typedef Vec<3> Vec3;
132 typedef Vec<4> Vec4;
133 
134 
138 typedef Mat<2, 2> Mat22;
142 typedef Mat<3, 3> Mat33;
146 typedef Mat<4, 4> Mat44;
147 
154 
157 typedef Row<2> Row2;
160 typedef Row<3> Row3;
163 typedef Row<4> Row4;
170 // Less-popular Vec typedefs.
171 typedef Vec<1> Vec1;
172 typedef Vec<5> Vec5;
173 typedef Vec<6> Vec6;
174 typedef Vec<7> Vec7;
175 typedef Vec<8> Vec8;
176 typedef Vec<9> Vec9;
177 
178 // Less-popular Mat typedefs.
179 typedef Mat<1,1> Mat11;
180 typedef Mat<1,2> Mat12;
181 typedef Mat<1,3> Mat13;
182 typedef Mat<1,4> Mat14;
183 typedef Mat<1,5> Mat15;
184 typedef Mat<1,6> Mat16;
185 typedef Mat<1,7> Mat17;
186 typedef Mat<1,8> Mat18;
187 typedef Mat<1,9> Mat19;
188 
189 typedef Mat<2,1> Mat21;
190 typedef Mat<2,3> Mat23;
191 typedef Mat<2,4> Mat24;
192 typedef Mat<2,5> Mat25;
193 typedef Mat<2,6> Mat26;
194 typedef Mat<2,7> Mat27;
195 typedef Mat<2,8> Mat28;
196 typedef Mat<2,9> Mat29;
197 
198 typedef Mat<3,1> Mat31;
199 typedef Mat<3,2> Mat32;
200 typedef Mat<3,4> Mat34;
201 typedef Mat<3,5> Mat35;
202 typedef Mat<3,6> Mat36;
203 typedef Mat<3,7> Mat37;
204 typedef Mat<3,8> Mat38;
205 typedef Mat<3,9> Mat39;
206 
207 typedef Mat<4,1> Mat41;
208 typedef Mat<4,2> Mat42;
209 typedef Mat<4,3> Mat43;
210 typedef Mat<4,5> Mat45;
211 typedef Mat<4,6> Mat46;
212 typedef Mat<4,7> Mat47;
213 typedef Mat<4,8> Mat48;
214 typedef Mat<4,9> Mat49;
215 
216 typedef Mat<5,1> Mat51;
217 typedef Mat<5,2> Mat52;
218 typedef Mat<5,3> Mat53;
219 typedef Mat<5,4> Mat54;
220 typedef Mat<5,5> Mat55;
221 typedef Mat<5,6> Mat56;
222 typedef Mat<5,7> Mat57;
223 typedef Mat<5,8> Mat58;
224 typedef Mat<5,9> Mat59;
225 
226 typedef Mat<6,1> Mat61;
227 typedef Mat<6,2> Mat62;
228 typedef Mat<6,3> Mat63;
229 typedef Mat<6,4> Mat64;
230 typedef Mat<6,5> Mat65;
231 typedef Mat<6,6> Mat66;
232 typedef Mat<6,7> Mat67;
233 typedef Mat<6,8> Mat68;
234 typedef Mat<6,9> Mat69;
235 
236 typedef Mat<7,1> Mat71;
237 typedef Mat<7,2> Mat72;
238 typedef Mat<7,3> Mat73;
239 typedef Mat<7,4> Mat74;
240 typedef Mat<7,5> Mat75;
241 typedef Mat<7,6> Mat76;
242 typedef Mat<7,7> Mat77;
243 typedef Mat<7,8> Mat78;
244 typedef Mat<7,9> Mat79;
245 
246 typedef Mat<8,1> Mat81;
247 typedef Mat<8,2> Mat82;
248 typedef Mat<8,3> Mat83;
249 typedef Mat<8,4> Mat84;
250 typedef Mat<8,5> Mat85;
251 typedef Mat<8,6> Mat86;
252 typedef Mat<8,7> Mat87;
253 typedef Mat<8,8> Mat88;
254 typedef Mat<8,9> Mat89;
255 
256 typedef Mat<9,1> Mat91;
257 typedef Mat<9,2> Mat92;
258 typedef Mat<9,3> Mat93;
259 typedef Mat<9,4> Mat94;
260 typedef Mat<9,5> Mat95;
261 typedef Mat<9,6> Mat96;
262 typedef Mat<9,7> Mat97;
263 typedef Mat<9,8> Mat98;
264 typedef Mat<9,9> Mat99;
265 
266 // Less-popular SymMat typedefs.
273 
274 // Less-popular Row typedefs.
275 typedef Row<1> Row1;
276 
277 typedef Row<5> Row5;
279 typedef Row<6> Row6;
281 typedef Row<7> Row7;
283 typedef Row<8> Row8;
285 typedef Row<9> Row9;
286 
287 // float-precision Vecs.
297 
298 // Just doing some of the popular ones for now.
310 
321 
322 // float-precision Rows.
332 
334 } //namespace SimTK
335 
336 
337 #endif //SimTK_SIMMATRIX_SMALLMATRIX_H_