mptensor v0.2

mptensor is parallel C++ libarary for tensor calculations. It provides similar interfaces as Numpy and Scipy in Python.


How to Use

  • Modify Makefile.option as your environment and then make.
  • Include src/mptensor.hpp in your codes.
  • Complie your applications with src/libmptensor.a .


By make doc, HTML and LaTeX documents are generated in doxygen_docs. The HTML documents are available in


#include <mptensor.hpp>
using namespace mptensor;
typedef Tensor<scalapack::Matrix,double> ptensor;
ptensor A(Shape(3,4,5));

Example codes of TRG and HOTRG for the 2D Ising model are in examples/Ising_2D.