Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 8794bde5 authored by hhakim's avatar hhakim
Browse files

Add an alias matfaust/pyfaust.isFaust to matfaust/pyfaust.Faust.isFaust.

parent 5392ef30
No related branches found
No related tags found
No related merge requests found
%================================================================
%> Returns true if obj is a Faust object, false otherwise.
%===
%>
%> @b Example
%> @code
%> import matfaust.*
%> isFaust(1) % returns 0
%> isFaust(FaustFactory.rand(5,10)) % returns 1
%> @endcode
%>
%> <p> @b See @b also Faust.Faust
%================================================================
function bool = isFaust(obj)
import matfaust.Faust.isFaust
bool = isFaust(obj);
end
......@@ -2519,3 +2519,16 @@ def vstack(_tuple):
"""
return pyfaust.concatenate(_tuple, axis=0)
def isFaust(obj):
"""
Returns True if obj is a Faust object, False otherwise.
Examples:
>>> from pyfaust import isFaust, FaustFactory
>>> isFaust(2)
False
>>> isFaust(FaustFactory.rand(5,10))
True
"""
return Faust.isFaust(obj)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment