git-svn-id: https://reactphysics3d.googlecode.com/svn/trunk@357 92aac97c-a6ce-11dd-a772-7fcde58d38e6

This commit is contained in:
chappuis.daniel 2010-07-19 19:24:12 +00:00
parent 0cb6b91c3f
commit 3ccc537378

View File

@ -43,6 +43,7 @@ Matrix::Matrix(int nbRow, int nbColumn) throw(std::invalid_argument)
for(int i=0; i<nbRow; ++i) { for(int i=0; i<nbRow; ++i) {
array[i] = new double[nbColumn]; array[i] = new double[nbColumn];
assert(array[i] != 0);
} }
// TODO : This initialization loop must be removed carefully // TODO : This initialization loop must be removed carefully
@ -431,7 +432,7 @@ Matrix Matrix::operator-(const Matrix& matrix2) const throw(MathematicsException
// Overloaded operator * for the multiplication of the matrix with a number // Overloaded operator * for the multiplication of the matrix with a number
Matrix Matrix::operator*(double nb) const { Matrix Matrix::operator*(double nb) const {
// Creation of the result matrix // Creation of the result matrix
Matrix result(nbRow,nbColumn); Matrix result(nbRow, nbColumn);
// Multiplication of the matrix with the number // Multiplication of the matrix with the number
for(int i=0; i<nbRow; ++i) { for(int i=0; i<nbRow; ++i) {