SetFloats sets tensor values from a []float64 slice (copies values).
(flt []float64)
| 150 | |
| 151 | // SetFloats sets tensor values from a []float64 slice (copies values). |
| 152 | func (tsr *String) SetFloats(flt []float64) { |
| 153 | for i, v := range flt { |
| 154 | tsr.Values[i] = Float64ToString(v) |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | // At is the gonum/mat.Matrix interface method for returning 2D matrix element at given |
| 159 | // row, column index. Assumes Row-major ordering and logs an error if NumDims < 2. |
nothing calls this directly
no test coverage detected