Changed : A[i,k] to A[i][k]
authorKent Mein <mein@cs.umn.edu>
Mon, 30 Aug 2004 13:44:58 +0000 (13:44 +0000)
committerKent Mein <mein@cs.umn.edu>
Mon, 30 Aug 2004 13:44:58 +0000 (13:44 +0000)
Caught from the following warning:
In file included from IK_QChain.h:47,
                 from IK_QChain.cpp:44:
TNT/cmat.h: In function `void TNT::matmultdiag(TNT::Matrix<T>&, const TNT::Matri
x<T>&, const TNT::Vector<T>&)':
TNT/cmat.h:593: warning: left-hand operand of comma has no effect

Kent

intern/iksolver/intern/TNT/cmat.h

index 99827f2c2c17b1975290af08841f0700d3fd24ad..46eb11004757853ee677eb1584a72759a43c5cf3 100644 (file)
@@ -590,7 +590,7 @@ inline void matmultdiag(
     for (Subscript i=0; i<M; i++) {
                for (Subscript k=0; k<K; k++)
                {
-                       C[i][k] = A[i,k] * diag[k];             
+                       C[i][k] = A[i][k] * diag[k];            
                }
        }
 }