Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
xerus
xerus
Commits
9622eaed
Commit
9622eaed
authored
Apr 09, 2020
by
Philipp Trunschke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add comment
parent
168b2ff9
Pipeline
#1938
failed with stages
in 13 minutes and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/xerus/python/ttnetwork.cpp
src/xerus/python/ttnetwork.cpp
+1
-1
No files found.
src/xerus/python/ttnetwork.cpp
View file @
9622eaed
...
...
@@ -36,7 +36,7 @@ void expose_ttnetwork(module& m) {
.
def
(
"use_dense_representations"
,
&
TTTensor
::
use_dense_representations
)
.
def_static
(
"reduce_to_maximal_ranks"
,
&
TTTensor
::
reduce_to_maximal_ranks
)
// .def("degrees_of_freedom", static_cast<size_t (TTTensor::*)()>(&TTTensor::degrees_of_freedom))
//
.def("degrees_of_freedom", static_cast<size_t (TTTensor::*)()
const
>(&TTTensor::degrees_of_freedom))
// NOTE overloading a method with both static and instance methods is not supported
.
def_static
(
"degrees_of_freedom"
,
static_cast
<
size_t
(
*
)(
const
std
::
vector
<
size_t
>&
,
const
std
::
vector
<
size_t
>&
)
>
(
&
TTTensor
::
degrees_of_freedom
))
.
def
(
"chop"
,
&
TTTensor
::
chop
,
arg
(
"position"
))
/* +[](TTTensor &_this, size_t _pos) { */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment