| 1534 | } |
| 1535 | |
| 1536 | private static class AtableShort extends AtableBase implements Atable<Short> { |
| 1537 | |
| 1538 | public AtableShort(Mat mat, int row, int col) { |
| 1539 | super(mat, row, col); |
| 1540 | } |
| 1541 | |
| 1542 | public AtableShort(Mat mat, int[] indices) { |
| 1543 | super(mat, indices); |
| 1544 | } |
| 1545 | |
| 1546 | @Override |
| 1547 | public Short getV() { |
| 1548 | short[] data = new short[1]; |
| 1549 | mat.get(indices, data); |
| 1550 | return data[0]; |
| 1551 | } |
| 1552 | |
| 1553 | @Override |
| 1554 | public void setV(Short v) { |
| 1555 | short[] data = new short[] { v }; |
| 1556 | mat.put(indices, data); |
| 1557 | } |
| 1558 | |
| 1559 | @Override |
| 1560 | public Tuple2<Short> getV2c() { |
| 1561 | short[] data = new short[2]; |
| 1562 | mat.get(indices, data); |
| 1563 | return new Tuple2<Short>(data[0], data[1]); |
| 1564 | } |
| 1565 | |
| 1566 | @Override |
| 1567 | public void setV2c(Tuple2<Short> v) { |
| 1568 | short[] data = new short[] { v._0, v._1 }; |
| 1569 | mat.put(indices, data); |
| 1570 | } |
| 1571 | |
| 1572 | @Override |
| 1573 | public Tuple3<Short> getV3c() { |
| 1574 | short[] data = new short[3]; |
| 1575 | mat.get(indices, data); |
| 1576 | return new Tuple3<Short>(data[0], data[1], data[2]); |
| 1577 | } |
| 1578 | |
| 1579 | @Override |
| 1580 | public void setV3c(Tuple3<Short> v) { |
| 1581 | short[] data = new short[] { v._0, v._1, v._2 }; |
| 1582 | mat.put(indices, data); |
| 1583 | } |
| 1584 | |
| 1585 | @Override |
| 1586 | public Tuple4<Short> getV4c() { |
| 1587 | short[] data = new short[4]; |
| 1588 | mat.get(indices, data); |
| 1589 | return new Tuple4<Short>(data[0], data[1], data[2], data[3]); |
| 1590 | } |
| 1591 | |
| 1592 | @Override |
| 1593 | public void setV4c(Tuple4<Short> v) { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…