mat

package
v0.0.0-...-5130504 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package mat provides some additional utility functions that complement the excellent github.com/gonum/matrix/mat64 package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColumnMeans

func ColumnMeans(data *mat64.Dense) *mat64.Vector

ColumnMeans returns a vector of all of the averages of each column.

func Diag

func Diag(mat *mat64.Dense) *mat64.Vector

Diag returns a vector of the matrix diagonal values, starting with (0, 0). If the matrix is not square, Diag pretends the matrix is square with a side-length of min(width, height).

func Eye

func Eye(width int, val float64) *mat64.Dense

Eye returns an identity matrix of size width by width multiplied by value.

func RowMeans

func RowMeans(data *mat64.Dense) *mat64.Vector

RowMeans returns a vector of all of the averages of each row.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL