Révision 97

pobysoPythonSage/src/sageSLZ/sageMatrixOperations.sage (revision 97)
115 115
    """
116 116
    Compute the list of indices of the rows that have a 0 norm.
117 117
    """
118
    if numRows == matrix.nrows():
118
    if 0 == matrix.nrows():
119 119
        return []
120 120
    zeroRowsList = []
121 121
    rowIndex = 0
122 122
    for row in matrix.rows():
123 123
        if row.norm(p=1) == 0 :
124 124
            zeroRowsList.append(rowIndex)
125
        rowIndex += 1()
125
        rowIndex += 1
126 126
    return zeroRowsList
127 127

  
128 128
# End smo_zero_rows_index_list

Formats disponibles : Unified diff