Mentions légales du service

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

Add doc for shape argument of pyfaust.proj classes.

parent afae7624
Branches
Tags
No related merge requests found
...@@ -231,6 +231,7 @@ class sp(proj_gen): ...@@ -231,6 +231,7 @@ class sp(proj_gen):
""" """
Args: Args:
shape: shape of the input array.
k: the number of nonzeros of the projection image. k: the number of nonzeros of the projection image.
normalized: True to normalize the projection image according to its Frobenius norm. normalized: True to normalize the projection image according to its Frobenius norm.
pos: True to skip negative values (replaced by zero) of the matrix to project. pos: True to skip negative values (replaced by zero) of the matrix to project.
...@@ -272,6 +273,7 @@ class splin(proj_gen): ...@@ -272,6 +273,7 @@ class splin(proj_gen):
def __init__(self, shape, k, normalized=True, pos=False): def __init__(self, shape, k, normalized=True, pos=False):
""" """
Args: Args:
shape: shape of the input array.
k: the number of nonzeros of the projection image. k: the number of nonzeros of the projection image.
normalized: True to normalize the projection image according to its Frobenius norm. normalized: True to normalize the projection image according to its Frobenius norm.
pos: True to skip negative values (replaced by zero) of the matrix to project. pos: True to skip negative values (replaced by zero) of the matrix to project.
...@@ -313,6 +315,7 @@ class spcol(proj_gen): ...@@ -313,6 +315,7 @@ class spcol(proj_gen):
""" """
Args: Args:
shape: shape of the input array.
S: the support matrix. S: the support matrix.
normalized: True to normalize the projection image according to its Frobenius norm. normalized: True to normalize the projection image according to its Frobenius norm.
pos: True to skip negative values (replaced by zero) of the matrix to project. pos: True to skip negative values (replaced by zero) of the matrix to project.
...@@ -377,6 +380,7 @@ class splincol(proj_gen): ...@@ -377,6 +380,7 @@ class splincol(proj_gen):
""" """
Args: Args:
shape: shape of the input array.
k: the integer sparsity (number of nonzeros) targeted per-row and k: the integer sparsity (number of nonzeros) targeted per-row and
per-column. per-column.
normalized: True to normalize the projection image according to its Frobenius norm. normalized: True to normalize the projection image according to its Frobenius norm.
...@@ -670,6 +674,7 @@ class skperm(proj_gen): ...@@ -670,6 +674,7 @@ class skperm(proj_gen):
Projector constructor. Projector constructor.
Args: Args:
shape: shape of the input array.
k: the integer sparsity (number of nonzeros) targeted per-row and k: the integer sparsity (number of nonzeros) targeted per-row and
per-column. per-column.
normalized: True to normalize the projection image according to its Frobenius norm. normalized: True to normalize the projection image according to its Frobenius norm.
...@@ -681,7 +686,7 @@ class skperm(proj_gen): ...@@ -681,7 +686,7 @@ class skperm(proj_gen):
class triu_sp(proj_gen): class triu_sp(proj_gen):
""" """
Functor for the TRIU SP projector. Functor for the TRIU_SP projector.
A, the image matrix, is such that the lower triangular part is 0 and \f$ \| A \|_0 = k, \| A\|_F = 1 \f$ (if normalized == True). A, the image matrix, is such that the lower triangular part is 0 and \f$ \| A \|_0 = k, \| A\|_F = 1 \f$ (if normalized == True).
...@@ -716,6 +721,7 @@ class triu_sp(proj_gen): ...@@ -716,6 +721,7 @@ class triu_sp(proj_gen):
""" """
Args: Args:
shape: shape of the input array.
k: the number of nonzeros of the projection image. k: the number of nonzeros of the projection image.
normalized: True to normalize the projection image according to its Frobenius norm. normalized: True to normalize the projection image according to its Frobenius norm.
pos: True to skip negative values (replaced by zero) of the matrix to project. pos: True to skip negative values (replaced by zero) of the matrix to project.
...@@ -726,7 +732,7 @@ class triu_sp(proj_gen): ...@@ -726,7 +732,7 @@ class triu_sp(proj_gen):
class tril_sp(proj_gen): class tril_sp(proj_gen):
""" """
Functor for the TRIL SP projector. Functor for the TRIL_SP projector.
A, the image matrix, is such that the upper triangular part is 0 and \f$ \| A \|_0 = k, \| A\|_F = 1 \f$ (if normalized == True). A, the image matrix, is such that the upper triangular part is 0 and \f$ \| A \|_0 = k, \| A\|_F = 1 \f$ (if normalized == True).
...@@ -761,6 +767,7 @@ class tril_sp(proj_gen): ...@@ -761,6 +767,7 @@ class tril_sp(proj_gen):
""" """
Args: Args:
shape: shape of the input array.
k: the number of nonzeros of the projection image. k: the number of nonzeros of the projection image.
normalized: True to normalize the projection image according to its Frobenius norm. normalized: True to normalize the projection image according to its Frobenius norm.
pos: True to skip negative values (replaced by zero) of the matrix to project. pos: True to skip negative values (replaced by zero) of the matrix to project.
...@@ -804,6 +811,7 @@ class symm_sp(proj_gen): ...@@ -804,6 +811,7 @@ class symm_sp(proj_gen):
""" """
Args: Args:
shape: shape of the input array.
k: the number of nonzeros of the projection image. k: the number of nonzeros of the projection image.
normalized: True to normalize the projection image according to its Frobenius norm. normalized: True to normalize the projection image according to its Frobenius norm.
pos: True to skip negative values (replaced by zero) of the matrix to project. pos: True to skip negative values (replaced by zero) of the matrix to project.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment