mptensor  v0.3.0
Parallel Library for Tensor Network Methods
trace.cc File Reference

Test code for trace. More...

#include <cassert>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <vector>
#include <mptensor/mptensor.hpp>
#include "functions.hpp"
#include "mpi_tool.hpp"
#include "timer.hpp"
#include "typedef.hpp"

Namespaces

 tests
 Test codes for Tensor.
 

Functions

void tests::test_trace (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for full trace of tensor. More...
 
void tests::test_trace_complex (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for full trace of tensor (complex version) More...
 
void tests::test_trace2 (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for full contraction of two tensors. More...
 
void tests::test_trace2_complex (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for full contraction of two tensors (complex version) More...
 

Detailed Description

Test code for trace.

Author
Satoshi Morita morit.nosp@m.a@is.nosp@m.sp.u-.nosp@m.toky.nosp@m.o.ac..nosp@m.jp
Date
April 24 2015