1 | initial version |
Matrix type has a find
method which allows that:
sage: deg.find(lambda entry:entry==15,indices=True)
{(5, 2): 15, (5, 4): 15, (14, 1): 15}
It returns the indices and the value of the matrix matching the condition given as input. The condition is a function.
2 | No.2 Revision |
Matrix type has a find
method which allows that:
sage: deg.find(lambda entry:entry==15,indices=True)
{(5, 2): 15, (5, 4): 15, (14, 1): 15}
It returns the indices and the value values of the matrix matching the condition given as input. The condition is a function.
3 | No.3 Revision |
Matrix type has a find
method which allows that:
sage: deg.find(lambda entry:entry==15,indices=True)
{(5, 2): 15, (5, 4): 15, (14, 1): 15}
It returns a dictionary of the indices and the values of the matrix matching the condition given as input. The condition is a function.