NOMAD Source  Version 4.0.0 Beta
Direction.hpp File Reference

Direction: Represent geometrical vectors. More...

#include <numeric>
#include "../Math/ArrayOfDouble.hpp"
#include "../nomad_nsbegin.hpp"
#include "../nomad_nsend.hpp"
Include dependency graph for Direction.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Direction
 Class for the representation of a direction. More...
 

Enumerations

enum  NormType {
  NormType::L1,
  NormType::L2,
  NormType::LINF
}
 Type of norm. More...
 

Functions

std::ostream & operator<< (std::ostream &out, const Direction &d)
 Display of Direction. More...
 

Detailed Description

Direction: Represent geometrical vectors.

Author
Viviane Rochon Montplaisir
Date
October 2017
See also
Direction.cpp

Definition in file Direction.hpp.

Enumeration Type Documentation

◆ NormType

enum NormType
strong

Type of norm.

Enumerator
L1 

Norm L1.

L2 

Norm L2.

LINF 

Norm LInf.

Definition at line 63 of file Direction.hpp.

64 {
65  L1, ///< Norm L1
66  L2, ///< Norm L2
67  LINF ///< Norm LInf
68 };

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  out,
const Direction d 
)

Display of Direction.

Parameters
dObject to be displayed – IN.
outReference to stream – IN.
Returns
Reference to stream.
NormType::LINF
@ LINF
Norm LInf.
NormType::L2
@ L2
Norm L2.
NormType::L1
@ L1
Norm L1.