dense

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2015 License: MIT Imports: 6 Imported by: 4

Documentation

Overview

Package "dense" provides an implementation of mutable dense matrix.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deserialize added in v0.1.1

func Deserialize(reader io.Reader) (types.Matrix, error)

Deserialize a matrix from the given reader. This accepts data generated with (*denseMatrix).Serialize.

func New

func New(rows, columns int) func(elements ...float64) types.Matrix

Create a new matrix with given elements. When "rows" and "columns" is not positive, validates.NON_POSITIVE_SIZE_PANIC will be caused. In addition, when the product of "row"s and "column" doesn't equal to the size of "elements", validates.INVALID_ELEMENTS_PANIC will be caused.

func Zeros

func Zeros(rows, columns int) types.Matrix

Create a new zero matrix. When "rows" and "columns" is not positive, validates.NON_POSITIVE_SIZE_PANIC will be caused.

Types

This section is empty.

Jump to

Keyboard shortcuts

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