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.
20#include "mlLinearAlgebraDefs.h"
22
23// All declarations of this header will be in the ML_LA_NAMESPACE namespace.
25
26//--------------------------------------------------------------------
28//--------------------------------------------------------------------
30template <class DT>
31class Tvec32 : public FloatingPointVector<DT,32>
32{
33public:
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
138
139#endif //of __mlVector32_H
140
141
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
Target mlrange_cast(Source arg)
Generic version of checked ML casts.