Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 79230b49 authored by hhakim's avatar hhakim
Browse files

Fix Faust.density() and RCG() for Py2.

parent f9669775
Branches
Tags
No related merge requests found
......@@ -291,7 +291,7 @@ class Faust:
Examples:
>>> F.density()
"""
return float(F.nnz()/(F.get_nb_cols()*F.get_nb_rows()))
return float(F.nnz())/(F.get_nb_cols()*F.get_nb_rows())
def RCG(F):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment