Projection2DSet sets a float64 value at given row, col coords for a 2D projection of the given tensor, collapsing higher dimensions down to 2D (and 1D up to 2D). For any odd number of dimensions, the remaining outer-most dimension can either be multipliexed across the row or column, given the oddRow
(tsr Tensor, oddRow bool, row, col int, val float64)
| 149 | // Even multiples of inner-most dimensions are assumed to be row, then column. |
| 150 | // RowMajor and ColMajor layouts are handled appropriately. |
| 151 | func Projection2DSet(tsr Tensor, oddRow bool, row, col int, val float64) { |
| 152 | idx := Projection2DIndex(tsr.Shape(), oddRow, row, col) |
| 153 | tsr.SetFloat1D(idx, val) |
| 154 | } |
nothing calls this directly
no test coverage detected