MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
mfem::TVector< S, data_t, align > Struct Template Reference

#include <ttensor.hpp>

Collaboration diagram for mfem::TVector< S, data_t, align >:
[legend]

Public Types

typedef data_t data_type
 
typedef StridedLayout1D< S, 1 > layout_type
 

Public Member Functions

data_t & operator[] (int i)
 
const data_t & operator[] (int i) const
 
template<AssignOp::Type Op>
void Assign (const data_t d)
 
template<AssignOp::Type Op, typename src_data_t >
void Assign (const src_data_t &src)
 
template<AssignOp::Type Op, typename dest_data_t >
void AssignTo (dest_data_t &dest)
 
void Set (const data_t d)
 
template<typename src_data_t >
void Set (const src_data_t &src)
 
template<typename dest_data_t >
void Assemble (dest_data_t &dest) const
 
void Scale (const data_t scale)
 

Public Attributes

data_t data [aligned_size >0?aligned_size:1]
 

Static Public Attributes

static const int size = S
 
static const int aligned_size = align ? MFEM_ALIGN_SIZE(S,data_t) : size
 
static const layout_type layout = layout_type()
 

Detailed Description

template<int S, typename data_t = double, bool align = false>
struct mfem::TVector< S, data_t, align >

Definition at line 288 of file ttensor.hpp.

Member Typedef Documentation

◆ data_type

template<int S, typename data_t = double, bool align = false>
typedef data_t mfem::TVector< S, data_t, align >::data_type

Definition at line 293 of file ttensor.hpp.

◆ layout_type

template<int S, typename data_t = double, bool align = false>
typedef StridedLayout1D<S,1> mfem::TVector< S, data_t, align >::layout_type

Definition at line 296 of file ttensor.hpp.

Member Function Documentation

◆ Assemble()

template<int S, typename data_t = double, bool align = false>
template<typename dest_data_t >
void mfem::TVector< S, data_t, align >::Assemble ( dest_data_t & dest) const
inline

Definition at line 332 of file ttensor.hpp.

◆ Assign() [1/2]

template<int S, typename data_t = double, bool align = false>
template<AssignOp::Type Op>
void mfem::TVector< S, data_t, align >::Assign ( const data_t d)
inline

Definition at line 303 of file ttensor.hpp.

◆ Assign() [2/2]

template<int S, typename data_t = double, bool align = false>
template<AssignOp::Type Op, typename src_data_t >
void mfem::TVector< S, data_t, align >::Assign ( const src_data_t & src)
inline

Definition at line 309 of file ttensor.hpp.

◆ AssignTo()

template<int S, typename data_t = double, bool align = false>
template<AssignOp::Type Op, typename dest_data_t >
void mfem::TVector< S, data_t, align >::AssignTo ( dest_data_t & dest)
inline

Definition at line 315 of file ttensor.hpp.

◆ operator[]() [1/2]

template<int S, typename data_t = double, bool align = false>
data_t & mfem::TVector< S, data_t, align >::operator[] ( int i)
inline

Definition at line 299 of file ttensor.hpp.

◆ operator[]() [2/2]

template<int S, typename data_t = double, bool align = false>
const data_t & mfem::TVector< S, data_t, align >::operator[] ( int i) const
inline

Definition at line 300 of file ttensor.hpp.

◆ Scale()

template<int S, typename data_t = double, bool align = false>
void mfem::TVector< S, data_t, align >::Scale ( const data_t scale)
inline

Definition at line 337 of file ttensor.hpp.

◆ Set() [1/2]

template<int S, typename data_t = double, bool align = false>
void mfem::TVector< S, data_t, align >::Set ( const data_t d)
inline

Definition at line 320 of file ttensor.hpp.

◆ Set() [2/2]

template<int S, typename data_t = double, bool align = false>
template<typename src_data_t >
void mfem::TVector< S, data_t, align >::Set ( const src_data_t & src)
inline

Definition at line 326 of file ttensor.hpp.

Member Data Documentation

◆ aligned_size

template<int S, typename data_t = double, bool align = false>
const int mfem::TVector< S, data_t, align >::aligned_size = align ? MFEM_ALIGN_SIZE(S,data_t) : size
static

Definition at line 292 of file ttensor.hpp.

◆ data

template<int S, typename data_t = double, bool align = false>
data_t mfem::TVector< S, data_t, align >::data[aligned_size >0?aligned_size:1]

Definition at line 294 of file ttensor.hpp.

◆ layout

template<int S, typename data_t , bool align>
const TVector< S, data_t, align >::layout_type mfem::TVector< S, data_t, align >::layout = layout_type()
static

Definition at line 297 of file ttensor.hpp.

◆ size

template<int S, typename data_t = double, bool align = false>
const int mfem::TVector< S, data_t, align >::size = S
static

Definition at line 291 of file ttensor.hpp.


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