v0.9.2
Classes | Namespaces | Functions
Tensor2_symmetric_value.hpp File Reference
#include <ostream>

Go to the source code of this file.

Classes

class  FTensor::Tensor2_symmetric< T, Tensor_Dim >
 

Namespaces

 FTensor
 JSON compatible output.
 

Functions

template<class T , int Tensor_Dim>
std::ostream & FTensor::Tensor2_symmetric_ostream_row (std::ostream &os, const FTensor::Tensor2_symmetric< T, Tensor_Dim > &t, const int &i)
 
template<class T , int Tensor_Dim>
std::ostream & operator<< (std::ostream &os, const FTensor::Tensor2_symmetric< T, Tensor_Dim > &t)
 
template<class T , int Tensor_Dim>
std::istream & FTensor::Tensor2_symmetric_istream_row (std::istream &is, FTensor::Tensor2_symmetric< T, Tensor_Dim > &t, const int &i)
 
template<class T , int Tensor_Dim>
std::istream & operator>> (std::istream &is, FTensor::Tensor2_symmetric< T, Tensor_Dim > &t)
 

Function Documentation

◆ operator<<()

template<class T , int Tensor_Dim>
std::ostream& operator<< ( std::ostream &  os,
const FTensor::Tensor2_symmetric< T, Tensor_Dim > &  t 
)

Definition at line 248 of file Tensor2_symmetric_value.hpp.

250 {
251  os << '[';
252  for(int i = 0; i + 1 < Tensor_Dim; ++i)
253  {
255  os << ',';
256  }
257  if(Tensor_Dim > 0)
258  {
259  FTensor::Tensor2_symmetric_ostream_row(os, t, Tensor_Dim - 1);
260  }
261  os << ']';
262  return os;
263 }
std::ostream & Tensor2_symmetric_ostream_row(std::ostream &os, const FTensor::Tensor2_symmetric< T, Tensor_Dim > &t, const int &i)
FTensor::Index< 'i', 2 > i
[Common data]
Definition: ContactOps.hpp:26

◆ operator>>()

template<class T , int Tensor_Dim>
std::istream& operator>> ( std::istream &  is,
FTensor::Tensor2_symmetric< T, Tensor_Dim > &  t 
)

Definition at line 290 of file Tensor2_symmetric_value.hpp.

291 {
292  char c;
293  is >> c;
294  for(int i = 0; i + 1 < Tensor_Dim; ++i)
295  {
297  is >> c;
298  }
299  if(Tensor_Dim > 0)
300  {
301  FTensor::Tensor2_symmetric_istream_row(is, t, Tensor_Dim - 1);
302  }
303  is >> c;
304  return is;
305 }
std::istream & Tensor2_symmetric_istream_row(std::istream &is, FTensor::Tensor2_symmetric< T, Tensor_Dim > &t, const int &i)
FTensor::Index< 'i', 2 > i
[Common data]
Definition: ContactOps.hpp:26