comparison src/sparse-xpow.cc @ 13873:1bf8c244040a

Clarify error message when raising matrices to powers * sparse-xpow.cc: Rephrase error messages * xpow.cc: Ditto
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Thu, 17 Nov 2011 00:26:36 -0500
parents 12df7854fa7c
children 72c96de7a403
comparison
equal deleted inserted replaced
13872:779e15b69738 13873:1bf8c244040a
61 61
62 octave_idx_type nr = a.rows (); 62 octave_idx_type nr = a.rows ();
63 octave_idx_type nc = a.cols (); 63 octave_idx_type nc = a.cols ();
64 64
65 if (nr == 0 || nc == 0 || nr != nc) 65 if (nr == 0 || nc == 0 || nr != nc)
66 error ("for A^b, A must be square"); 66 error ("for A^b, A must be a square matrix");
67 else 67 else
68 { 68 {
69 if (static_cast<int> (b) == b) 69 if (static_cast<int> (b) == b)
70 { 70 {
71 int btmp = static_cast<int> (b); 71 int btmp = static_cast<int> (b);
134 134
135 octave_idx_type nr = a.rows (); 135 octave_idx_type nr = a.rows ();
136 octave_idx_type nc = a.cols (); 136 octave_idx_type nc = a.cols ();
137 137
138 if (nr == 0 || nc == 0 || nr != nc) 138 if (nr == 0 || nc == 0 || nr != nc)
139 error ("for A^b, A must be square"); 139 error ("for A^b, A must be a square matrix");
140 else 140 else
141 { 141 {
142 if (static_cast<int> (b) == b) 142 if (static_cast<int> (b) == b)
143 { 143 {
144 int btmp = static_cast<int> (b); 144 int btmp = static_cast<int> (b);