Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 3acdc0c9 authored by hhakim's avatar hhakim
Browse files

Add pyfaust.Faust.ndim as numpy.ndarray.ndim.

parent 4e39c59c
Branches
Tags 3.0.15
No related merge requests found
...@@ -181,6 +181,13 @@ class Faust: ...@@ -181,6 +181,13 @@ class Faust:
""" """
return F.m_faust.shape() return F.m_faust.shape()
@property
def ndim(F):
"""
Number of Faust dimensions (always 2).
"""
return 2
@property @property
def size(F): def size(F):
""" """
...@@ -673,6 +680,7 @@ class Faust: ...@@ -673,6 +680,7 @@ class Faust:
__array_ufunc__ = None # mandatory to override rmatmul __array_ufunc__ = None # mandatory to override rmatmul
# it means Faust doesn't support ufuncs # it means Faust doesn't support ufuncs
def __rmatmul__(F,lhs_op): def __rmatmul__(F,lhs_op):
""" """
Returns lhs_op.__matmul__(F). Returns lhs_op.__matmul__(F).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment