python/pycubool/matrix.py
def extract_row(self, i, out=None):
        """
        Extract specified `self` matrix row as sparse vector.

        >>> matrix = Matrix.from_lists((5, 4), [0, 1, 2, 4], [0, 1, 1, 3])
        >>> print(matrix.extract_row(1))
        '
          0 |   . |   0
          1 |   1 |   1
          2 |   . |   2
          3 |   . |   3
        '

        :param i: Row index to extract
        :param out: Optional out vector to store result
        :return: Return extracted row
        """

        if out is None:
            out = vector.Vector.empty(self.ncols)

        status = wrapper.loaded_dll.cuBool_Matrix_ExtractRow(
            out.hnd,
            self.hnd,
            ctypes.c_uint(i),
            ctypes.c_uint(0)
        )

        bridge.check(status)
        return out

        Extract specified `self` matrix row as sparse vector.

        >>> matrix = Matrix.from_lists((5, 4), [0, 1, 2, 4], [0, 1, 1, 3])
        >>> print(matrix.extract_row(1))
        '
          0 |   . |   0
          1 |   1 |   1
          2 |   . |   2
          3 |   . |   3
        '

        :param i: Row index to extract
        :param out: Optional out vector to store result
        :return: Return extracted row
        
Extract specified `self` matrix row as sparse vector.
Extract specified ` self ` matrix row as sparse vector .
def extract_row(self, i, out=None):
        if out is None:
            out = vector.Vector.empty(self.ncols)
        status = wrapper.loaded_dll.cuBool_Matrix_ExtractRow(
            out.hnd,
            self.hnd,
            ctypes.c_uint(i),
            ctypes.c_uint(0)
        )
        bridge.check(status)
        return out
def extract_row ( self , i , out = None ) : if out is None : out = vector . Vector . empty ( self . ncols ) status = wrapper . loaded_dll . cuBool_Matrix_ExtractRow ( out . hnd , self . hnd , ctypes . c_uint ( i ) , ctypes . c_uint ( 0 ) ) bridge . check ( status ) return out
Extract specified `self` matrix row as sparse vector.
Extract specified ` self ` matrix row as sparse vector .
"""
        Extract specified `self` matrix row as sparse vector.

        >>> matrix = Matrix.from_lists((5, 4), [0, 1, 2, 4], [0, 1, 1, 3])
        >>> print(matrix.extract_row(1))
        '
          0 |   . |   0
          1 |   1 |   1
          2 |   . |   2
          3 |   . |   3
        '

        :param i: Row index to extract
        :param out: Optional out vector to store result
        :return: Return extracted row
        """
Return extracted row
Return extracted row
self
i
Row index to extract
Row index to extract
out
Optional out vector to store result
Optional out vector to store result