python/pycubool/vector.py
def build(self, rows, is_sorted=False, no_duplicates=False):
        """
        Build sparse vector of boolean values from provided array of non-zero values.

        >>> vector = Vector.empty(4)
        >>> vector.build([0, 1, 3], is_sorted=True, no_duplicates=True)
        >>> print(vector)
        '
          0 |   1 |   0
          1 |   1 |   1
          2 |   . |   2
          3 |   1 |   3
        '

        :param rows: Array of vector values
        :param is_sorted: True if values are sorted
        :param no_duplicates: True if provided values has no duplicates
        :return:
        """

        nvals = len(rows)
        t_rows = (ctypes.c_uint * len(rows))(*rows)

        status = wrapper.loaded_dll.cuBool_Vector_Build(
            self.hnd, t_rows,
            ctypes.c_uint(nvals),
            ctypes.c_uint(bridge.get_build_hints(is_sorted, no_duplicates))
        )

        bridge.check(status)

        Build sparse vector of boolean values from provided array of non-zero values.

        >>> vector = Vector.empty(4)
        >>> vector.build([0, 1, 3], is_sorted=True, no_duplicates=True)
        >>> print(vector)
        '
          0 |   1 |   0
          1 |   1 |   1
          2 |   . |   2
          3 |   1 |   3
        '

        :param rows: Array of vector values
        :param is_sorted: True if values are sorted
        :param no_duplicates: True if provided values has no duplicates
        :return:
        
Build sparse vector of boolean values from provided array of non-zero values.
Build sparse vector of boolean values from provided array of non - zero values .
def build(self, rows, is_sorted=False, no_duplicates=False):
        nvals = len(rows)
        t_rows = (ctypes.c_uint * len(rows))(*rows)
        status = wrapper.loaded_dll.cuBool_Vector_Build(
            self.hnd, t_rows,
            ctypes.c_uint(nvals),
            ctypes.c_uint(bridge.get_build_hints(is_sorted, no_duplicates))
        )
        bridge.check(status)
def build ( self , rows , is_sorted = False , no_duplicates = False ) : nvals = len ( rows ) t_rows = ( ctypes . c_uint * len ( rows ) ) ( * rows ) status = wrapper . loaded_dll . cuBool_Vector_Build ( self . hnd , t_rows , ctypes . c_uint ( nvals ) , ctypes . c_uint ( bridge . get_build_hints ( is_sorted , no_duplicates ) ) ) bridge . check ( status )
Build sparse vector of boolean values from provided array of non-zero values.
Build sparse vector of boolean values from provided array of non - zero values .
"""
        Build sparse vector of boolean values from provided array of non-zero values.

        >>> vector = Vector.empty(4)
        >>> vector.build([0, 1, 3], is_sorted=True, no_duplicates=True)
        >>> print(vector)
        '
          0 |   1 |   0
          1 |   1 |   1
          2 |   . |   2
          3 |   1 |   3
        '

        :param rows: Array of vector values
        :param is_sorted: True if values are sorted
        :param no_duplicates: True if provided values has no duplicates
        :return:
        """
None
self
rows
Array of vector values
Array of vector values
is_sorted
True if values are sorted
True if values are sorted
no_duplicates
True if provided values has no duplicates
True if provided values has no duplicates