Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Convert ¶
Convert matrix 'gonum.mat.Matrix' to PNG picture file with filename. Color of picture pixel in according to `config`.
Example ¶
package main import ( "github.com/Konstantin8105/matpi" "gonum.org/v1/gonum/mat" ) func main() { m := mat.NewDense(100, 80, nil) for i := 0; i < 80; i++ { m.Set(i, i, 1.0) m.Set(i, 79-i, -1.0) } err := matpi.Convert(m, "result.png", matpi.NewConfig()) if err != nil { panic(err) } }
Output:
Types ¶
Click to show internal directories.
Click to hide internal directories.