python/pycubool/vector.py
def from_list(cls, nrows, rows, is_sorted=False, no_duplicates=False):
        """
        Create vector from provided `nrows` size and specified non-zero indices.

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

        :param nrows: Vector dimension
        :param rows: List with indices of non-zero vector values
        :param is_sorted: True if values are sorted
        :param no_duplicates: True if provided values has no duplicates
        :return: Created vector filled with data
        """

        out = cls.empty(nrows)
        out.build(rows, is_sorted=is_sorted, no_duplicates=no_duplicates)
        return out

        Create vector from provided `nrows` size and specified non-zero indices.

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

        :param nrows: Vector dimension
        :param rows: List with indices of non-zero vector values
        :param is_sorted: True if values are sorted
        :param no_duplicates: True if provided values has no duplicates
        :return: Created vector filled with data
        
Create vector from provided `nrows` size and specified non-zero indices.
Create vector from provided ` nrows ` size and specified non - zero indices .
def from_list(cls, nrows, rows, is_sorted=False, no_duplicates=False):
        out = cls.empty(nrows)
        out.build(rows, is_sorted=is_sorted, no_duplicates=no_duplicates)
        return out
def from_list ( cls , nrows , rows , is_sorted = False , no_duplicates = False ) : out = cls . empty ( nrows ) out . build ( rows , is_sorted = is_sorted , no_duplicates = no_duplicates ) return out
Create vector from provided `nrows` size and specified non-zero indices.
Create vector from provided ` nrows ` size and specified non - zero indices .
"""
        Create vector from provided `nrows` size and specified non-zero indices.

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

        :param nrows: Vector dimension
        :param rows: List with indices of non-zero vector values
        :param is_sorted: True if values are sorted
        :param no_duplicates: True if provided values has no duplicates
        :return: Created vector filled with data
        """
Created vector filled with data
Created vector filled with data
cls
nrows
None
rows
List with indices of non-zero vector values
List with indices of non - zero 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