Try to avoid copy of matrix values.