Ask Your Question

Revision history [back]

click to hide/show revision 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.

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.

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.