python/pycubool/vector.py
def to_list(self):
        """
        Read vector data as list of non-zero vector indices.

        >>> a = Vector.empty(nrows=4)
        >>> a[0] = True
        >>> a[2] = True
        >>> a[3] = True
        >>> rows = a.to_list()
        >>> print(list(rows))
        '[0, 2, 3]'

        :return: List of indices
        """

        count = self.nvals

        rows = (ctypes.c_uint * count)()
        nvals = ctypes.c_uint(count)

        status = wrapper.loaded_dll.cuBool_Vector_ExtractValues(
            self.hnd, rows, ctypes.byref(nvals)
        )

        bridge.check(status)

        return rows

        Read vector data as list of non-zero vector indices.

        >>> a = Vector.empty(nrows=4)
        >>> a[0] = True
        >>> a[2] = True
        >>> a[3] = True
        >>> rows = a.to_list()
        >>> print(list(rows))
        '[0, 2, 3]'

        :return: List of indices
        
Read vector data as list of non-zero vector indices.
Read vector data as list of non - zero vector indices .
def to_list(self):
        count = self.nvals
        rows = (ctypes.c_uint * count)()
        nvals = ctypes.c_uint(count)
        status = wrapper.loaded_dll.cuBool_Vector_ExtractValues(
            self.hnd, rows, ctypes.byref(nvals)
        )
        bridge.check(status)
        return rows
def to_list ( self ) : count = self . nvals rows = ( ctypes . c_uint * count ) ( ) nvals = ctypes . c_uint ( count ) status = wrapper . loaded_dll . cuBool_Vector_ExtractValues ( self . hnd , rows , ctypes . byref ( nvals ) ) bridge . check ( status ) return rows
Read vector data as list of non-zero vector indices.
Read vector data as list of non - zero vector indices .
"""
        Read vector data as list of non-zero vector indices.

        >>> a = Vector.empty(nrows=4)
        >>> a[0] = True
        >>> a[2] = True
        >>> a[3] = True
        >>> rows = a.to_list()
        >>> print(list(rows))
        '[0, 2, 3]'

        :return: List of indices
        """
List of indices
List of indices
self