expmat

package
v0.0.0-...-36c816c Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BooleanIndexing

func BooleanIndexing(m mat.Matrix, inv bool, br, bc []bool) lap.Matrix

func BooleanSetVec

func BooleanSetVec(dst *mat.VecDense, src mat.Vector, inv bool, br []bool)

func CopyBlocks

func CopyBlocks(dst *mat.Dense, rows, cols int, src []mat.Matrix) error

Types

type Eye

type Eye int

func (Eye) At

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

func (Eye) Dims

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

func (Eye) T

func (m Eye) T() mat.Matrix

type Matrix

type Matrix interface {
	Set(i, j int, v float64)
	ReuseAs(int, int)
}

type Vector

type Vector interface {
	SetVec(i int, v float64)
	ReuseAsVec(int)
}

type Zero

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

func (Zero) At

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

func (Zero) Dims

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

func (Zero) T

func (m Zero) T() mat.Matrix

Jump to

Keyboard shortcuts

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