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.
24ML_LA_START_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 }
70
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 }
119
120};
121
122
123//-----------------------------------------------------------------------------------
126//-----------------------------------------------------------------------------------
136
137ML_LA_END_NAMESPACE
138
139#endif //of __mlVector32_H
140
141
A 32 dimensional vector class for floating point types.
Definition mlVector32.h:32
Tvec32(const FloatingPointVector< DT, 32 > &v)
Definition mlVector32.h:51
Tvec32(DT value=0)
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 MLfloat x00, const MLfloat x01, const MLfloat x02, const MLfloat x03, const MLfloat x04, const MLfloat x05, const MLfloat x06, const MLfloat x07, const MLfloat x08, const MLfloat x09, const MLfloat x10, const MLfloat x11, const MLfloat x12, const MLfloat x13, const MLfloat x14, const MLfloat x15, const MLfloat x16, const MLfloat x17, const MLfloat x18, const MLfloat x19, const MLfloat x20, const MLfloat x21, const MLfloat x22, const MLfloat x23, const MLfloat x24, const MLfloat x25, const MLfloat x26, const MLfloat x27, const MLfloat x28, const MLfloat x29, const MLfloat x30, const MLfloat x31)
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