libMesh::TypeTensorColumn< T > Class Template Reference

#include <type_tensor.h>

Public Member Functions

 TypeTensorColumn (TypeTensor< T > &tensor, unsigned int j)
 
T & operator() (const unsigned int i)
 
T & slice (const unsigned int i)
 
TypeTensorColumn< T > & operator= (const TypeVector< T > &rhs)
 

Private Attributes

TypeTensor< T > * _tensor
 
const unsigned int _j
 

Detailed Description

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

Definition at line 35 of file type_tensor.h.

Constructor & Destructor Documentation

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

Definition at line 393 of file type_tensor.h.

394  :
395  _tensor(&tensor), _j(j) {}
const unsigned int _j
Definition: type_tensor.h:419
TypeTensor< T > * _tensor
Definition: type_tensor.h:418

Member Function Documentation

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

Return a writeable reference to the $ i,this $ element of the tensor.

Definition at line 401 of file type_tensor.h.

402  { return (*_tensor)(i,_j); }
const unsigned int _j
Definition: type_tensor.h:419
TypeTensor< T > * _tensor
Definition: type_tensor.h:418
template<typename T>
TypeTensorColumn<T>& libMesh::TypeTensorColumn< T >::operator= ( const TypeVector< T > &  rhs)
inline

Assign values to this column of the tensor.

Definition at line 410 of file type_tensor.h.

411  {
412  for (unsigned int i=0; i != LIBMESH_DIM; ++i)
413  (*this)(i) = rhs(i);
414  return *this;
415  }
template<typename T>
T& libMesh::TypeTensorColumn< T >::slice ( const unsigned int  i)
inline

Definition at line 404 of file type_tensor.h.

405  { return (*_tensor)(i,_j); }
const unsigned int _j
Definition: type_tensor.h:419
TypeTensor< T > * _tensor
Definition: type_tensor.h:418

Member Data Documentation

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

Definition at line 419 of file type_tensor.h.

template<typename T>
TypeTensor<T>* libMesh::TypeTensorColumn< T >::_tensor
private

Definition at line 418 of file type_tensor.h.


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