matrix: github.com/gonum/matrix/conv Index | Files

package conv

import "github.com/gonum/matrix/conv"

This repository is no longer maintained. Development has moved to https://github.com/gonum/gonum.

Package conv provides matrix type interconversion utilities.

Index

Package Files

conv.go

func NewImag Uses

func NewImag(m cmat128.Matrix) mat64.Matrix

NewImag returns a mat64.Matrix representing the imaginary part of m. If m is an Imager, the imaginary part is returned.

func NewReal Uses

func NewReal(m cmat128.Matrix) mat64.Matrix

NewReal returns a mat64.Matrix representing the real part of m. If m is a Realer, the real part is returned.

type Complex Uses

type Complex struct {
    // contains filtered or unexported fields
}

Complex is a complex matrix constructed from two real matrices.

func NewComplex Uses

func NewComplex(r, i mat64.Matrix) Complex

NewComplex returns a complex matrix constructed from r and i. At least one of r or i must be non-nil otherwise NewComplex will panic. If one of the inputs is nil, that part of the complex number will be zero when returned by At. If both are non-nil but differ in their sizes, NewComplex will panic.

func (Complex) At Uses

func (m Complex) At(i, j int) complex128

At returns the element at row i, column j.

func (Complex) Dims Uses

func (m Complex) Dims() (r, c int)

Dims returns the number of rows and columns in the matrix.

func (Complex) H Uses

func (m Complex) H() cmat128.Matrix

H performs an implicit transpose.

func (Complex) Imag Uses

func (m Complex) Imag() mat64.Matrix

Imag returns the imaginary part of the receiver.

func (Complex) Real Uses

func (m Complex) Real() mat64.Matrix

Real returns the real part of the receiver.

type Imag Uses

type Imag struct {
    // contains filtered or unexported fields
}

Imag is the imaginary part of a complex matrix.

func (Imag) At Uses

func (m Imag) At(i, j int) float64

At returns the element at row i, column j.

func (Imag) Dims Uses

func (m Imag) Dims() (r, c int)

Dims returns the number of rows and columns in the matrix.

func (Imag) T Uses

func (m Imag) T() mat64.Matrix

T performs an implicit transpose.

type Imager Uses

type Imager interface {
    Imag() mat64.Matrix
}

Imager is a complex matrix that can return its imaginary part.

type Real Uses

type Real struct {
    // contains filtered or unexported fields
}

Real is the real part of a complex matrix.

func (Real) At Uses

func (m Real) At(i, j int) float64

At returns the element at row i, column j.

func (Real) Dims Uses

func (m Real) Dims() (r, c int)

Dims returns the number of rows and columns in the matrix.

func (Real) T Uses

func (m Real) T() mat64.Matrix

T performs an implicit transpose.

type Realer Uses

type Realer interface {
    Real() mat64.Matrix
}

Realer is a complex matrix that can return its real part.

Package conv imports 3 packages (graph). Updated 2019-01-04. Refresh now. Tools for package owners.