rewriters

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package "rewriters" provides functions to rewrite the indexes or shape of matrix.

Index

Constants

View Source
const (
	UNKNOWN_REWRITER_ERROR = "UNKNOWN_REWRITER_ERROR"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Rewriter

type Rewriter interface {
	Type() byte
	Serialize(writer io.Writer) error
	Rewrite(int, int) (int, int)
	Transpose() Rewriter
}

func Deserialize added in v0.1.1

func Deserialize(reader io.Reader) (Rewriter, error)

Deserialize a rewriter from the given reader. This accepts data generated with (Rewriter).Serialize.

func Get added in v0.1.4

func Get(typeId byte) (Rewriter, error)

func Reflect

func Reflect() Rewriter

func Reverse

func Reverse() Rewriter

Jump to

Keyboard shortcuts

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