v0.14.0
Classes | Namespaces | Functions
Tensor2_antisymmetric_value.hpp File Reference
#include <ostream>

Go to the source code of this file.

Classes

class  FTensor::Tensor2_antisymmetric< T, Tensor_Dim >
 

Namespaces

 FTensor
 JSON compatible output.
 

Functions

template<class T , int Tensor_Dim>
std::ostream & FTensor::Tensor2_antisymmetric_ostream_row (std::ostream &os, const FTensor::Tensor2_antisymmetric< T, Tensor_Dim > &t, const int &i)
 
template<class T , int Tensor_Dim>
std::ostream & operator<< (std::ostream &os, const FTensor::Tensor2_antisymmetric< T, Tensor_Dim > &t)
 
template<class T , int Tensor_Dim>
std::istream & FTensor::Tensor2_antisymmetric_istream_row (std::istream &is, FTensor::Tensor2_antisymmetric< T, Tensor_Dim > &t, const int &i)
 
template<class T , int Tensor_Dim>
std::istream & operator>> (std::istream &is, FTensor::Tensor2_antisymmetric< T, Tensor_Dim > &t)
 

Function Documentation

◆ operator<<()

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

Definition at line 258 of file Tensor2_antisymmetric_value.hpp.

260 {
261  os << '[';
262  for(int i = 0; i + 2 < Tensor_Dim; ++i)
263  {
265  os << ',';
266  }
267  if(Tensor_Dim > 1)
268  {
269  FTensor::Tensor2_antisymmetric_ostream_row(os, t, Tensor_Dim - 2);
270  }
271  os << ']';
272  return os;
273 }

◆ operator>>()

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

Definition at line 299 of file Tensor2_antisymmetric_value.hpp.

300 {
301  char c;
302  is >> c;
303  for(int i = 0; i + 2 < Tensor_Dim; ++i)
304  {
306  is >> c;
307  }
308  if(Tensor_Dim > 1)
309  {
310  FTensor::Tensor2_antisymmetric_istream_row(is, t, Tensor_Dim - 2);
311  }
312  is >> c;
313  return is;
314 }
c
const double c
speed of light (cm/ns)
Definition: initial_diffusion.cpp:39
FTensor::Tensor2_antisymmetric_istream_row
std::istream & Tensor2_antisymmetric_istream_row(std::istream &is, FTensor::Tensor2_antisymmetric< T, Tensor_Dim > &t, const int &i)
Definition: Tensor2_antisymmetric_value.hpp:278
t
constexpr double t
plate stiffness
Definition: plate.cpp:58
i
FTensor::Index< 'i', SPACE_DIM > i
Definition: hcurl_divergence_operator_2d.cpp:27
FTensor::Tensor2_antisymmetric_ostream_row
std::ostream & Tensor2_antisymmetric_ostream_row(std::ostream &os, const FTensor::Tensor2_antisymmetric< T, Tensor_Dim > &t, const int &i)
Definition: Tensor2_antisymmetric_value.hpp:238