data

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

README

Gosl. la/data. data subdirectory

This directory contains auxiliary data files for testing and examples.

Documentation

Overview

Package data wraps test_mat from https://people.sc.fsu.edu/~jburkardt/f_src/test_mat/test_mat.html This package should be used in tests only

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Det

func Det(n int, a []float64) (det float64)

Det returns the determinant

func NormFrob

func NormFrob(m, n int, a []float64) (norm float64)

NormFrob returns the Frobenius norm

func Plot

func Plot(m, n int, a []float64, title string)

Plot draws matrix

func Print

func Print(m, n int, a []float64, title string)

Print prints information about matrix

Types

type A123

type A123 struct {

	// size
	M, N int // size

	// matrices
	A  []float64 // matrix data
	El []float64 // eigen data
	Er []float64 // eigen data
	Ai []float64 // inverse
	P  []float64 // plu data
	Ll []float64 // plu data
	Uu []float64 // plu data
	Q  []float64 // qr data
	R  []float64 // qr data
	U  []float64 // svd data
	S  []float64 // svd data
	V  []float64 // svd data

	// vectors
	Ev  []float64 // eigen data
	Nl  []float64 // null vector
	Nr  []float64 // null vector
	RHS []float64 // right-hand-side
	Sol []float64 // solution

	// scalars
	Det float64 // determinant
}

A123 implements the 'A123' matrix

func (*A123) Generate

func (o *A123) Generate()

Generate connects Go with C code

type ChebyT

type ChebyT struct {

	// size
	M, N int // size

	// matrices
	A  []float64 // matrix data
	Ai []float64 // inverse

	// scalars
	Det float64 // determinant
}

ChebyT implements the Chebychev matrix

func (*ChebyT) Generate

func (o *ChebyT) Generate(n int)

Generate connects Go with C code

Jump to

Keyboard shortcuts

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