I don’t know what Apache Math’s limits are. You’re probably better off with EJML, which specializes in matrices and has computational and memory efficiency as design goals.
Please Login to reply.
And if EJML doesn’t work, there’s always Fortran.