[Swift-commit] r6769 - SwiftTutorials/ATPESC_2013-08-06/part11-swift-py-r/code
wozniak at ci.uchicago.edu
wozniak at ci.uchicago.edu
Mon Aug 5 16:44:49 CDT 2013
Author: wozniak
Date: 2013-08-05 16:44:49 -0500 (Mon, 05 Aug 2013)
New Revision: 6769
Modified:
SwiftTutorials/ATPESC_2013-08-06/part11-swift-py-r/code/dets.swift
Log:
More greppable output
Modified: SwiftTutorials/ATPESC_2013-08-06/part11-swift-py-r/code/dets.swift
===================================================================
--- SwiftTutorials/ATPESC_2013-08-06/part11-swift-py-r/code/dets.swift 2013-08-05 21:37:46 UTC (rev 6768)
+++ SwiftTutorials/ATPESC_2013-08-06/part11-swift-py-r/code/dets.swift 2013-08-05 21:44:49 UTC (rev 6769)
@@ -23,10 +23,11 @@
v = determinant(B);
// Store the determinant in a Swift array:
dets[i] = abs_float(v);
+ printf("dets[%i]=%.2f", i, v);
}
// Build a fragment of R code with the dets:
code = sprintf("max(%s)", string_from_floats(dets));
r = R(code);
- printf("max: %f", r);
+ printf("dets: max: %f", r);
}
More information about the Swift-commit
mailing list