Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 6 years ago

parzan gravatar image

It seems that most efficient is A.apply_map(ZZ,ZZ).

click to hide/show revision 2
No.2 Revision

It seems that most efficient is A.apply_map(ZZ,ZZ).

Note this will not work if you have non-integers in the matrix, then you can use A.apply_map(int,ZZ) or A.apply_map(round,ZZ) to round the entries.

click to hide/show revision 3
No.3 Revision

It seems that most efficient is A.apply_map(ZZ,ZZ). (in terms of running time).

Note this will not work if you have non-integers in the matrix, then you can use A.apply_map(int,ZZ) or A.apply_map(round,ZZ) to round the entries.

click to hide/show revision 4
No.4 Revision

It seems that most efficient method is A.apply_map(ZZ,ZZ) (in terms of running time).

Note this will not work if you have non-integers in the matrix, then you can use A.apply_map(int,ZZ) or A.apply_map(round,ZZ) to round the entries.

click to hide/show revision 5
No.5 Revision

It seems that the most efficient method is A.apply_map(ZZ,ZZ) (in terms of running time).

Note this will not work if you have non-integers in the matrix, then you can use A.apply_map(int,ZZ) or A.apply_map(round,ZZ) to round the entries.