OGS
LinAlgEnums.cpp
Go to the documentation of this file.
1
13#include "LinAlgEnums.h"
14
15namespace MathLib
16{
18{
19 switch (normType)
20 {
22 return "NORM1";
24 return "NORM2";
26 return "INFINITY_N";
27 default:
28 return "INVALID";
29 }
30}
31
33{
34 if (str == "NORM1")
35 {
36 return VecNormType::NORM1;
37 }
38 if (str == "NORM2")
39 {
40 return VecNormType::NORM2;
41 }
42 if (str == "INFINITY_N")
43 {
45 }
47}
48
49} // end namespace MathLib
std::string convertVecNormTypeToString(VecNormType normType)
convert VecNormType to string
VecNormType convertStringToVecNormType(const std::string &str)
convert string to VecNormType