gorgonia.org/tensor (go): Package tensor is a package that provides efficient, generic n-dimensional arrays in Go. Also in this package are functions and methods that are used commonly in arithmetic, comparison and linear algebra operations.  The AsDenseDiag construction option creates a dense diagonal matrix from the input, either a slice or a tensor. The resulting shape is automatically inferred from the input vector.  This is like Numpy's `diag()` function, except not stupid. Numpy's `diag()` has been a cause of errors because it's somewhat isometric:  The AsFortran construction option is a bit finnicky.  This example showcases the very basics of the package.  This example showcases interactions between different data orders   This is an example of how to use `IteratorFromDense` from a row-major Dense tensor  This is an example of using `IteratorFromDense` on a col-major Dense tensor. More importantly this example shows the order of the iteration.
Keywords: deep-learning|golang|hacktoberfest|machine-learning|multidimensional-arrays|ndarray|tensor