Commit d9704c39 authored by Michael Goette's avatar Michael Goette

updated htNetwork doc and removed most dead code

parent 75734863
Pipeline #1062 passed with stages
in 9 minutes and 52 seconds
This diff is collapsed.
......@@ -24,7 +24,7 @@
#include "../../include/xerus/misc/internal.h"
using namespace xerus;
static misc::UnitTest ht_consitent("HT", "consistent networks", [](){
static misc::UnitTest ht_consistent("HT", "consistent networks", [](){
auto ones = xerus::HTTensor::ones({3,4,5});
auto rt = xerus::HTNetwork<false>::random({2,3,4,5,6,7},3);
auto rtop = xerus::HTNetwork<true>::random({2,3,4,5,6,7},3);
......
This diff is collapsed.
......@@ -47,10 +47,6 @@ void expose_ttnetwork() {
+[](std::vector<size_t> _dim, std::vector<size_t> _rank) {
return xerus::TTTensor::random(_dim, _rank);
}).staticmethod("random")
.def("constant",
+[](value_t _constant, std::vector<size_t> _dim, std::vector<size_t> _rank) {
return xerus::TTTensor::constant(_constant, _dim, _rank);
}).staticmethod("constant")
.def("ones", &TTTensor::ones).staticmethod("ones")
.def("kronecker", &TTTensor::kronecker).staticmethod("kronecker")
.def("dirac", static_cast<TTTensor (*)(Tensor::DimensionTuple, const Tensor::MultiIndex&)>(&TTTensor::dirac))
......@@ -115,10 +111,6 @@ void expose_ttnetwork() {
+[](std::vector<size_t> _dim, std::vector<size_t> _rank) {
return xerus::TTOperator::random(_dim, _rank);
}).staticmethod("random")
.def("constant",
+[](value_t _constant, std::vector<size_t> _dim, std::vector<size_t> _rank) {
return xerus::TTOperator::constant(_constant, _dim, _rank);
}).staticmethod("constant")
.def("ones", &TTOperator::ones).staticmethod("ones")
.def("kronecker", &TTOperator::kronecker).staticmethod("kronecker")
.def("dirac", static_cast<TTOperator (*)(Tensor::DimensionTuple, const Tensor::MultiIndex&)>(&TTOperator::dirac))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment