| 884 | // are return(i) = theData[i]/fact; Exits if divide-by-zero error. |
| 885 | |
| 886 | Vector |
| 887 | Vector::operator/(double fact) const |
| 888 | { |
| 889 | if (fact == 0.0) |
| 890 | opserr << "Vector::operator/(double fact) - divide-by-zero error coming\n"; |
| 891 | |
| 892 | Vector result(*this); |
| 893 | if (result.Size() != sz) |
| 894 | opserr << "Vector::operator/(double) - ran out of memory for new Vector\n"; |
| 895 | |
| 896 | result /= fact; |
| 897 | return result; |
| 898 | } |
| 899 | |
| 900 | |
| 901 |