mptensor  v0.3.0
Parallel Library for Tensor Network Methods
tensor_test.hpp File Reference

Test code for mptensor. More...

#include <iostream>
#include "mpi_tool.hpp"

Go to the source code of this file.

Namespaces

 tests
 Test codes for Tensor.
 

Functions

void tests::test_transpose (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for TensorD::transpose. More...
 
void tests::test_reshape (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for TensorD::reshape. More...
 
void tests::test_slice (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for TensorD::slice. More...
 
void tests::test_set_slice (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for TensorD::set_slice. More...
 
void tests::test_tensordot (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for TensorD::tensordot. More...
 
void tests::test_svd (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for TensorD::svd. More...
 
void tests::test_qr (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for TensorD::qr. More...
 
void tests::test_qr_rank2 (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for TensorD::qr (Matrix version) More...
 
void tests::test_eigh (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for TensorD::eigh. More...
 
void tests::test_eigh_rank2 (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for TensorD::eigh. More...
 
void tests::test_eigh_general (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for TensorD::eigh (generalized eigenvalue problem) More...
 
void tests::test_arithmetic (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for arithmetic operators. More...
 
void tests::test_trace (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for full trace of tensor. 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_contract (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for TensorD::contract (partial trace) More...
 
void tests::test_kron (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for TensorD::kron. More...
 
void tests::test_transpose_complex (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for TensorC::transpose. More...
 
void tests::test_reshape_complex (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for TensorC::reshape. More...
 
void tests::test_slice_complex (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for TensorC::slice. More...
 
void tests::test_set_slice_complex (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for TensorC::slice. More...
 
void tests::test_tensordot_complex (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for TensorC::tensordot. More...
 
void tests::test_svd_complex (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for TensorC::svd. More...
 
void tests::test_qr_complex (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for TensorC::qr. More...
 
void tests::test_qr_rank2_complex (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for TensorC::qr (Matrix version) More...
 
void tests::test_eigh_complex (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for TensorC::eigh. More...
 
void tests::test_eigh_rank2_complex (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for TensorC::eigh. More...
 
void tests::test_eigh_general_complex (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for TensorC::eigh. More...
 
void tests::test_arithmetic_complex (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for arithmetic operators (complex version) 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_complex (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for full contraction of two tensors (complex version) More...
 
void tests::test_contract_complex (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for TensorC::contract (partial trace) More...
 
void tests::test_kron_complex (const mpi_comm &comm, int L, std::ostream &ostrm)
 Test for TensorC::kron. More...
 

Detailed Description

Test code for mptensor.

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