[Swift-commit] r8177 - SwiftTutorials/ATPESC_2014-08-14/swift-t/examples/03-blas
wozniak at ci.uchicago.edu
wozniak at ci.uchicago.edu
Thu Aug 14 10:39:38 CDT 2014
Author: wozniak
Date: 2014-08-14 10:39:38 -0500 (Thu, 14 Aug 2014)
New Revision: 8177
Modified:
SwiftTutorials/ATPESC_2014-08-14/swift-t/examples/03-blas/dot.swift
Log:
Add comment
Modified: SwiftTutorials/ATPESC_2014-08-14/swift-t/examples/03-blas/dot.swift
===================================================================
--- SwiftTutorials/ATPESC_2014-08-14/swift-t/examples/03-blas/dot.swift 2014-08-14 15:25:44 UTC (rev 8176)
+++ SwiftTutorials/ATPESC_2014-08-14/swift-t/examples/03-blas/dot.swift 2014-08-14 15:39:38 UTC (rev 8177)
@@ -3,7 +3,7 @@
Example 3 - DOT.SWIFT
*/
-// Swift/T libraries:
+// Swift/T libraries:
import blob;
import io;
import matrix;
@@ -19,7 +19,7 @@
int N = 3;
foreach i in [0:N-1]
{
- A[i] = itof(i);
+ A[i] = itof(i); // integer-to-float
B[i] = itof(i+1);
}
@@ -28,7 +28,7 @@
vector_print(A) =>
printf("\nB") =>
vector_print(B)
- =>
+ =>
float z = blas_ddot(N, A, B);
printf("\nA*B=%0.1f", z);
More information about the Swift-commit
mailing list