MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / mutableTranspose

Method mutableTranspose

JSAT/src/jsat/linear/SparseMatrix.java:284–294  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

282 }
283
284 @Override
285 public void mutableTranspose()
286 {
287 for(int i = 0; i < rows()-1; i++)
288 for(int j = i+1; j < cols(); j++)
289 {
290 double tmp = get(j, i);
291 set(j, i, get(i, j));
292 set(i, j, tmp);
293 }
294 }
295
296 @Override
297 public void transpose(Matrix C)

Callers

nothing calls this directly

Calls 4

rowsMethod · 0.95
colsMethod · 0.95
getMethod · 0.95
setMethod · 0.95

Tested by

no test coverage detected