comparison liboctave/Sparse.cc @ 5828:22e23bee74c8

[project @ 2006-05-23 06:05:14 by jwe]
author jwe
date Tue, 23 May 2006 06:05:14 +0000
parents faafc2d98b8d
children 6a23ee71dd86
comparison
equal deleted inserted replaced
5827:1fe78adb91bc 5828:22e23bee74c8
2009 idx_vector lhs_idx = idx_tmp[0]; 2009 idx_vector lhs_idx = idx_tmp[0];
2010 2010
2011 octave_idx_type lhs_len = lhs.numel (); 2011 octave_idx_type lhs_len = lhs.numel ();
2012 octave_idx_type rhs_len = rhs.numel (); 2012 octave_idx_type rhs_len = rhs.numel ();
2013 2013
2014 unsigned EIGHT_BYTE_INT long_lhs_len = 2014 uint64_t long_lhs_len =
2015 static_cast<unsigned EIGHT_BYTE_INT> (lhs.rows ()) * 2015 static_cast<uint64_t> (lhs.rows ()) *
2016 static_cast<unsigned EIGHT_BYTE_INT> (lhs.cols ()); 2016 static_cast<uint64_t> (lhs.cols ());
2017 2017
2018 unsigned EIGHT_BYTE_INT long_rhs_len = 2018 uint64_t long_rhs_len =
2019 static_cast<unsigned EIGHT_BYTE_INT> (rhs.rows ()) * 2019 static_cast<uint64_t> (rhs.rows ()) *
2020 static_cast<unsigned EIGHT_BYTE_INT> (rhs.cols ()); 2020 static_cast<uint64_t> (rhs.cols ());
2021 2021
2022 if (long_rhs_len != static_cast<unsigned EIGHT_BYTE_INT>(rhs_len) || 2022 if (long_rhs_len != static_cast<uint64_t>(rhs_len) ||
2023 long_lhs_len != static_cast<unsigned EIGHT_BYTE_INT>(lhs_len)) 2023 long_lhs_len != static_cast<uint64_t>(lhs_len))
2024 { 2024 {
2025 (*current_liboctave_error_handler) 2025 (*current_liboctave_error_handler)
2026 ("A(I) = X: Matrix dimensions too large to ensure correct\n", 2026 ("A(I) = X: Matrix dimensions too large to ensure correct\n",
2027 "operation. This is an limitation that should be removed\n", 2027 "operation. This is an limitation that should be removed\n",
2028 "in the future."); 2028 "in the future.");