mptensor v0.4.0
Parallel Library for Tensor Network Methods
Loading...
Searching...
No Matches
tensor_test.hpp File Reference

Test code for mptensor. More...

#include <iostream>
#include "mpi_tool.hpp"
Include dependency graph for tensor_test.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  tests
 Test codes for Tensor.
 

Functions

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

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