`maximum` works on my fairly recent Julia build. So you can upgrade Julia or just use the function which is now included with Julia:
``` function maximum{T}(A::SparseMatrixCSC{T}) isempty(A) && throw(ArgumentError("argument must not be empty")) m = maximum(A.nzval) nfilled(A)!=length(A) ? max(m,zero(T)) : m end ``` On Saturday, May 10, 2014 10:01:05 AM UTC+1, Alexey Kolmakov wrote: > > How I can get maximum element of a sparse matrix? > Function *maximum(m)* not work for sparse matrix *m*. >