MeVisLab Toolbox Reference
mlVector32.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2007, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 #ifndef ML_VECTOR32_H
14 #define ML_VECTOR32_H
15 
17 
18 // Include system independent file and project settings.
19 #include "mlLinearAlgebraSystem.h"
20 #include "mlLinearAlgebraDefs.h"
21 #include "mlFloatingPointVector.h"
22 
23 // All declarations of this header will be in the ML_LA_NAMESPACE namespace.
24 ML_LA_START_NAMESPACE
25 
26 //--------------------------------------------------------------------
28 //--------------------------------------------------------------------
30 template <class DT>
31 class Tvec32 : public FloatingPointVector<DT,32>
32 {
33 public:
34 
36  typedef DT ComponentType;
37 
38  //--------------------------------------------------------------------
41  //--------------------------------------------------------------------
44  inline explicit Tvec32(DT value=0) : FloatingPointVector<DT,32>(value)
45  {
46  }
47 
52  {
53  }
54 
56  inline Tvec32(const DT x00, const DT x01, const DT x02, const DT x03,
57  const DT x04, const DT x05, const DT x06, const DT x07,
58  const DT x08, const DT x09, const DT x10, const DT x11,
59  const DT x12, const DT x13, const DT x14, const DT x15,
60  const DT x16, const DT x17, const DT x18, const DT x19,
61  const DT x20, const DT x21, const DT x22, const DT x23,
62  const DT x24, const DT x25, const DT x26, const DT x27,
63  const DT x28, const DT x29, const DT x30, const DT x31)
64  {
65  assign(x00, x01, x02, x03, x04, x05, x06, x07,
66  x08, x09, x10, x11, x12, x13, x14, x15,
67  x16, x17, x18, x19, x20, x21, x22, x23,
68  x24, x25, x26, x27, x28, x29, x30, x31);
69  }
71 
72  //--------------------------------------------------------------------
75  //--------------------------------------------------------------------
77  inline void assign(const DT x00, const DT x01, const DT x02, const DT x03,
78  const DT x04, const DT x05, const DT x06, const DT x07,
79  const DT x08, const DT x09, const DT x10, const DT x11,
80  const DT x12, const DT x13, const DT x14, const DT x15,
81  const DT x16, const DT x17, const DT x18, const DT x19,
82  const DT x20, const DT x21, const DT x22, const DT x23,
83  const DT x24, const DT x25, const DT x26, const DT x27,
84  const DT x28, const DT x29, const DT x30, const DT x31)
85  {
118  }
120 };
121 
122 
123 //-----------------------------------------------------------------------------------
126 //-----------------------------------------------------------------------------------
136 
137 
138 #if ML_DEPRECATED_SINCE(3,5,0)
143 ML_DEPRECATED typedef Tvec32<MLfloat> vecf32;
146 ML_DEPRECATED typedef Tvec32<MLdouble> vecd32;
149 ML_DEPRECATED typedef Tvec32<MLldouble> vecld32;
152 ML_DEPRECATED typedef Tvec32<MLdouble> vec32;
154 
155 #endif
156 
157 
158 ML_LA_END_NAMESPACE
159 
160 #endif //of __mlVector32_H
161 
162 
#define ML_DEPRECATED
Definition: CSOGroup.h:371
Template class for vector arithmetic with floating point data types.
A 32 dimensional vector class for floating point types.
Definition: mlVector32.h:32
Tvec32(const FloatingPointVector< DT, 32 > &v)
Copy constructor from FloatingPointVector.
Definition: mlVector32.h:51
Tvec32(DT value=0)
Default and value constructor.
Definition: mlVector32.h:44
DT ComponentType
A typedef to "export" the type of components.
Definition: mlVector32.h:36
Tvec32(const DT x00, const DT x01, const DT x02, const DT x03, const DT x04, const DT x05, const DT x06, const DT x07, const DT x08, const DT x09, const DT x10, const DT x11, const DT x12, const DT x13, const DT x14, const DT x15, const DT x16, const DT x17, const DT x18, const DT x19, const DT x20, const DT x21, const DT x22, const DT x23, const DT x24, const DT x25, const DT x26, const DT x27, const DT x28, const DT x29, const DT x30, const DT x31)
Builds the vector from the scalars x00, ... x31 to the components 0 to 31, respectively.
Definition: mlVector32.h:56
void assign(const DT x00, const DT x01, const DT x02, const DT x03, const DT x04, const DT x05, const DT x06, const DT x07, const DT x08, const DT x09, const DT x10, const DT x11, const DT x12, const DT x13, const DT x14, const DT x15, const DT x16, const DT x17, const DT x18, const DT x19, const DT x20, const DT x21, const DT x22, const DT x23, const DT x24, const DT x25, const DT x26, const DT x27, const DT x28, const DT x29, const DT x30, const DT x31)
Sets all components to the corresponding passed values.
Definition: mlVector32.h:77
Tvec32< MLdouble > Vector32
A vector with 32 components of type double.
Definition: mlVector32.h:134
Tvec32< MLfloat > Vector32f
A vector with 32 components of type float.
Definition: mlVector32.h:128
Tvec32< MLdouble > Vector32d
A vector with 32 components of type double.
Definition: mlVector32.h:130
Tvec32< MLldouble > Vector32ld
A vector with 32 components of type long double.
Definition: mlVector32.h:132