SetTensorFloat1D sets the tensor cell's float cell value at given 1D index within cell, at given column (by name), row index for columns that have n-dimensional tensors. Returns true if set.
(column string, row int, idx int, val float64)
| 666 | // at given column (by name), row index for columns that have n-dimensional tensors. |
| 667 | // Returns true if set. |
| 668 | func (dt *Table) SetTensorFloat1D(column string, row int, idx int, val float64) bool { |
| 669 | if !dt.IsValidRow(row) { |
| 670 | return false |
| 671 | } |
| 672 | ct := dt.ColumnByName(column) |
| 673 | if ct == nil { |
| 674 | return false |
| 675 | } |
| 676 | _, sz := ct.RowCellSize() |
| 677 | if idx >= sz || idx < 0 { |
| 678 | return false |
| 679 | } |
| 680 | off := row*sz + idx |
| 681 | ct.SetFloat1D(off, val) |
| 682 | return true |
| 683 | } |
| 684 | |
| 685 | ////////////////////////////////////////////////////////////////////////////////////// |
| 686 | // Copy Cell |
nothing calls this directly
no test coverage detected