|
From: <kin...@us...> - 2025-05-19 01:02:24
|
Revision: 7265
http://sourceforge.net/p/teem/code/7265
Author: kindlmann
Date: 2025-05-19 01:02:21 +0000 (Mon, 19 May 2025)
Log Message:
-----------
trying some C11-ification as procrastination
Modified Paths:
--------------
teem/trunk/src/ell/mat.c
Modified: teem/trunk/src/ell/mat.c
===================================================================
--- teem/trunk/src/ell/mat.c 2025-05-19 00:54:08 UTC (rev 7264)
+++ teem/trunk/src/ell/mat.c 2025-05-19 01:02:21 UTC (rev 7265)
@@ -220,16 +220,14 @@
void
ell_6m_mul_d(double AB[36], const double A[36], const double B[36]) {
- unsigned int ll, mm, nn;
- double tmp;
-
if (!(AB && A && B)) {
return;
}
- for (ll = 0; ll < 6; ll++) {
- for (nn = 0; nn < 6; nn++) {
- tmp = 0;
- for (mm = 0; mm < 6; mm++) {
+ for (unsigned int ll = 0; ll < 6; ll++) {
+ for (unsigned int nn = 0; nn < 6; nn++) {
+ double tmp = 0;
+ for (unsigned int mm = 0; mm < 6; mm++) {
+ // contracting row ll of A and col nn of B
tmp += A[mm + 6 * ll] * B[nn + 6 * mm];
}
AB[nn + 6 * ll] = tmp;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|