oILAB
Loading...
Searching...
No Matches
gbLAB::LatticeCore< dim > Struct Template Reference

#include <LatticeCore.h>

Public Types

typedef Eigen::Matrix< double, dim, 1 > VectorDimD
 
typedef Eigen::Matrix< double, dim, dim > MatrixDimD
 
typedef long long int IntScalarType
 
typedef Eigen::Matrix< IntScalarType, dim, 1 > VectorDimI
 
typedef Eigen::Matrix< IntScalarType, dim, dim > MatrixDimI
 

Static Public Member Functions

static VectorDimI rationalApproximation (VectorDimD v)
 Approximates a direction in terms of integer coordinates.
 
static VectorDimI integerCoordinates (const VectorDimD &d, const MatrixDimD &invA)
 Returns the integer coordinates of a vector \(d\) with respect to a lattices with structure matrix \(\textbf A\).
 

Static Public Attributes

static constexpr double roundTol =FLT_EPSILON
 

Detailed Description

template<int dim>
struct gbLAB::LatticeCore< dim >

Definition at line 19 of file LatticeCore.h.

Member Typedef Documentation

◆ IntScalarType

template<int dim>
typedef long long int gbLAB::LatticeCore< dim >::IntScalarType

Definition at line 26 of file LatticeCore.h.

◆ MatrixDimD

template<int dim>
typedef Eigen::Matrix<double,dim,dim> gbLAB::LatticeCore< dim >::MatrixDimD

Definition at line 25 of file LatticeCore.h.

◆ MatrixDimI

template<int dim>
typedef Eigen::Matrix<IntScalarType,dim,dim> gbLAB::LatticeCore< dim >::MatrixDimI

Definition at line 28 of file LatticeCore.h.

◆ VectorDimD

template<int dim>
typedef Eigen::Matrix< double,dim,1> gbLAB::LatticeCore< dim >::VectorDimD

Definition at line 24 of file LatticeCore.h.

◆ VectorDimI

template<int dim>
typedef Eigen::Matrix<IntScalarType,dim,1> gbLAB::LatticeCore< dim >::VectorDimI

Definition at line 27 of file LatticeCore.h.

Member Function Documentation

◆ integerCoordinates()

template<int dim>
LatticeCore< dim >::VectorDimI gbLAB::LatticeCore< dim >::integerCoordinates ( const VectorDimD d,
const MatrixDimD invA 
)
static

Returns the integer coordinates of a vector \(d\) with respect to a lattices with structure matrix \(\textbf A\).

Parameters
vinput direction
invA\(\textbf A^{-1}\)
Returns
integer coordinates

Definition at line 55 of file LatticeCore.cpp.

◆ rationalApproximation()

template<int dim>
LatticeCore< dim >::VectorDimI gbLAB::LatticeCore< dim >::rationalApproximation ( VectorDimD  v)
static

Approximates a direction in terms of integer coordinates.

Parameters
vinput direction
Returns
direction with integer coordinates

Definition at line 20 of file LatticeCore.cpp.

Field Documentation

◆ roundTol

template<int dim>
constexpr double gbLAB::LatticeCore< dim >::roundTol =FLT_EPSILON
staticconstexpr

Definition at line 22 of file LatticeCore.h.


The documentation for this struct was generated from the following files: