libMesh
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
libMesh::ConstTypeTensorColumn< T > Class Template Reference

#include <type_tensor.h>

Public Member Functions

 ConstTypeTensorColumn (const TypeTensor< T > &tensor, unsigned int j)
 
const T & operator() (const unsigned int i) const
 Return the \( i,this \) element of the tensor.
 
const T & slice (const unsigned int i) const
 

Private Attributes

const TypeTensor< T > * _tensor
 
const unsigned int _j
 

Detailed Description

template<typename T>
class libMesh::ConstTypeTensorColumn< T >

Definition at line 491 of file type_tensor.h.

Constructor & Destructor Documentation

◆ ConstTypeTensorColumn()

template<typename T >
libMesh::ConstTypeTensorColumn< T >::ConstTypeTensorColumn ( const TypeTensor< T > &  tensor,
unsigned int  j 
)
inline

Definition at line 495 of file type_tensor.h.

496 :
497 _tensor(&tensor), _j(j) {}
const TypeTensor< T > * _tensor

Member Function Documentation

◆ operator()()

template<typename T >
const T & libMesh::ConstTypeTensorColumn< T >::operator() ( const unsigned int  i) const
inline

Return the \( i,this \) element of the tensor.

Definition at line 502 of file type_tensor.h.

503 { return (*_tensor)(i,_j); }

References libMesh::ConstTypeTensorColumn< T >::_j, and libMesh::ConstTypeTensorColumn< T >::_tensor.

◆ slice()

template<typename T >
const T & libMesh::ConstTypeTensorColumn< T >::slice ( const unsigned int  i) const
inline

Definition at line 505 of file type_tensor.h.

506 { return (*_tensor)(i,_j); }

References libMesh::ConstTypeTensorColumn< T >::_j, and libMesh::ConstTypeTensorColumn< T >::_tensor.

Member Data Documentation

◆ _j

template<typename T >
const unsigned int libMesh::ConstTypeTensorColumn< T >::_j
private

◆ _tensor

template<typename T >
const TypeTensor<T>* libMesh::ConstTypeTensorColumn< T >::_tensor
private

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