Nektar++
Public Member Functions | Protected Attributes | List of all members
Nektar::Collections::MatrixFreeBase Class Reference

#include <MatrixFreeBase.h>

Inheritance diagram for Nektar::Collections::MatrixFreeBase:
[legend]

Public Member Functions

 MatrixFreeBase ()=default
 
 MatrixFreeBase (const unsigned int nIn, const unsigned int nOut, const unsigned int nCollSize)
 

Protected Attributes

bool m_isPadded {false}
 flag for padding More...
 
unsigned int m_nElmtPad
 size after padding More...
 
unsigned int m_nIn
 actural size of input array More...
 
unsigned int m_nOut
 actural size of output array More...
 

Detailed Description

Definition at line 43 of file MatrixFreeBase.h.

Constructor & Destructor Documentation

◆ MatrixFreeBase() [1/2]

Nektar::Collections::MatrixFreeBase::MatrixFreeBase ( )
default

◆ MatrixFreeBase() [2/2]

Nektar::Collections::MatrixFreeBase::MatrixFreeBase ( const unsigned int  nIn,
const unsigned int  nOut,
const unsigned int  nCollSize 
)
inline

Definition at line 49 of file MatrixFreeBase.h.

51 : m_nIn(nIn * nCollSize), m_nOut(nOut * nCollSize)
52 {
53 // Padding if needed
55 const auto nElmtNoPad = nCollSize;
56 m_nElmtPad = nElmtNoPad;
57
58 if (nElmtNoPad % vec_t::width != 0)
59 {
60 m_isPadded = true;
62 nElmtNoPad + vec_t::width - (nElmtNoPad % vec_t::width);
63 }
64 }
unsigned int m_nIn
actural size of input array
unsigned int m_nElmtPad
size after padding
unsigned int m_nOut
actural size of output array
simd< NekDouble > vec_t
typename abi< ScalarType, width >::type simd
Definition: tinysimd.hpp:80

References m_isPadded, and m_nElmtPad.

Member Data Documentation

◆ m_isPadded

bool Nektar::Collections::MatrixFreeBase::m_isPadded {false}
protected

flag for padding

Definition at line 68 of file MatrixFreeBase.h.

Referenced by MatrixFreeBase().

◆ m_nElmtPad

unsigned int Nektar::Collections::MatrixFreeBase::m_nElmtPad
protected

◆ m_nIn

unsigned int Nektar::Collections::MatrixFreeBase::m_nIn
protected

actural size of input array

Definition at line 72 of file MatrixFreeBase.h.

◆ m_nOut

unsigned int Nektar::Collections::MatrixFreeBase::m_nOut
protected