xerus
a general purpose tensor library
tensorNetwork.cpp File Reference

Implementation of the TensorNetwork class. More...

Go to the source code of this file.

Namespaces

 xerus
 The main namespace of xerus.
 
 xerus::misc
 Collection of classes and functions that provide elementary functionality that is not special to xerus as a tensor library.
 

Functions

bool xerus::approx_equal (const TensorNetwork &_a, const TensorNetwork &_b, const value_t _eps=EPSILON)
 Checks whether two TensorNetworks are approximately equal. More...
 
bool xerus::approx_equal (const TensorNetwork &_a, const Tensor &_b, const value_t _eps=EPSILON)
 Convinience wrapper, casts the the given TensorNetwork _a to Tensor and calls the Tensor function. More...
 
bool xerus::approx_equal (const Tensor &_a, const TensorNetwork &_b, const value_t _eps=EPSILON)
 Convinience wrapper, casts the the given TensorNetwork _b to Tensor and calls the Tensor function. More...
 
TensorNetwork xerus::operator* (TensorNetwork &_lhs, value_t _factor)
 
TensorNetwork xerus::operator* (value_t _factor, TensorNetwork &_rhs)
 
TensorNetwork xerus::operator/ (TensorNetwork &_lhs, value_t _factor)
 
void xerus::misc::stream_reader (std::istream &_stream, TensorNetwork &_obj, const FileFormat _format)
 Restores the TensorNetwork from a stream of data. More...
 
void xerus::misc::stream_writer (std::ostream &_stream, const TensorNetwork &_obj, const FileFormat _format)
 Pipes all information necessary to restore the current TensorNetwork into _stream. More...
 

Detailed Description

Implementation of the TensorNetwork class.

Definition in file tensorNetwork.cpp.