Skip to content

Commit 93c784f

Browse files
Merge pull request #20 from ihmcrobotics/feature/yomatrix-listeners
Set YoMatrix to update listeners
2 parents bba9d5e + 62589af commit 93c784f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/main/java/us/ihmc/yoVariables/math/YoMatrix.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public void scale(double scale)
236236
{
237237
for (int col = 0; col < getNumCols(); col++)
238238
{
239-
unsafe_set(row, col, unsafe_get(row, col) * scale, false);
239+
unsafe_set(row, col, unsafe_get(row, col) * scale);
240240
}
241241
}
242242
}
@@ -257,7 +257,7 @@ public void scale(double scale, DMatrix matrix)
257257
{
258258
for (int col = 0; col < getNumCols(); col++)
259259
{
260-
unsafe_set(row, col, matrix.unsafe_get(row, col) * scale, false);
260+
unsafe_set(row, col, matrix.unsafe_get(row, col) * scale);
261261
}
262262
}
263263
}
@@ -307,7 +307,7 @@ public void add(double alpha, DMatrix a, double beta, DMatrix b)
307307
{
308308
for (int col = 0; col < getNumCols(); col++)
309309
{
310-
unsafe_set(row, col, alpha * a.unsafe_get(row, col) + beta * b.unsafe_get(row, col), false);
310+
unsafe_set(row, col, alpha * a.unsafe_get(row, col) + beta * b.unsafe_get(row, col));
311311
}
312312
}
313313
}
@@ -338,7 +338,7 @@ public void addEquals(double alpha, DMatrix a)
338338
{
339339
for (int col = 0; col < getNumCols(); col++)
340340
{
341-
unsafe_set(row, col, unsafe_get(row, col) + alpha * a.unsafe_get(row, col), false);
341+
unsafe_set(row, col, unsafe_get(row, col) + alpha * a.unsafe_get(row, col));
342342
}
343343
}
344344
}
@@ -425,7 +425,7 @@ public void set(DMatrix matrix)
425425
{
426426
value = Double.NaN;
427427
}
428-
unsafe_set(row, column, value, false);
428+
unsafe_set(row, column, value);
429429
}
430430
}
431431
}
@@ -456,15 +456,15 @@ else if (numRows < 0 || numCols < 0)
456456
{
457457
for (int col = numCols; col < maxNumberOfColumns; col++)
458458
{
459-
unsafe_set(row, col, Double.NaN, false);
459+
unsafe_set(row, col, Double.NaN);
460460
}
461461
}
462462

463463
for (int row = numRows; row < maxNumberOfRows; row++)
464464
{
465465
for (int col = 0; col < maxNumberOfColumns; col++)
466466
{
467-
unsafe_set(row, col, Double.NaN, false);
467+
unsafe_set(row, col, Double.NaN);
468468
}
469469
}
470470
}
@@ -528,7 +528,7 @@ public void set(Matrix original)
528528
{
529529
for (int col = 0; col < getNumCols(); col++)
530530
{
531-
unsafe_set(row, col, otherMatrix.unsafe_get(row, col), false);
531+
unsafe_set(row, col, otherMatrix.unsafe_get(row, col));
532532
}
533533
}
534534
}
@@ -551,7 +551,7 @@ public void setToNaN(int numRows, int numCols)
551551
{
552552
for (int col = 0; col < numCols; col++)
553553
{
554-
unsafe_set(row, col, Double.NaN, false);
554+
unsafe_set(row, col, Double.NaN);
555555
}
556556
}
557557
}
@@ -585,9 +585,9 @@ public void zero()
585585
for (int col = 0; col < maxNumberOfColumns; col++)
586586
{
587587
if (row < getNumRows() && col < getNumCols())
588-
unsafe_set(row, col, 0.0, false);
588+
unsafe_set(row, col, 0.0);
589589
else
590-
unsafe_set(row, col, Double.NaN, false);
590+
unsafe_set(row, col, Double.NaN);
591591
}
592592
}
593593
}

0 commit comments

Comments
 (0)