MCPcopy Index your code
hub / github.com/aimacode/aima-java / toString

Method toString

aima-core/src/main/java/aima/core/util/math/Matrix.java:1259–1272  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1257 }
1258
1259 @Override
1260 public String toString() {
1261 StringBuffer buf = new StringBuffer();
1262 for (int i = 0; i < getRowDimension(); i++) {
1263
1264 for (int j = 0; j < getColumnDimension(); j++) {
1265 buf.append(get(i, j));
1266 buf.append(" ");
1267 }
1268 buf.append("\n");
1269 }
1270
1271 return buf.toString();
1272 }
1273
1274 /*
1275 * ------------------------ Private Methods ------------------------

Calls 4

getRowDimensionMethod · 0.95
getColumnDimensionMethod · 0.95
getMethod · 0.95
appendMethod · 0.45