matold

package
v0.0.0-...-d1c8724 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: GPL-3.0, LGPL-2.1 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const LastAltered = "13 Oct 2024"
View Source
const Small = 1.0e-10
View Source
const SubscriptDim = 8192

Variables

This section is empty.

Functions

func EqualApprox

func EqualApprox(a, b Matrix2D) bool

EqualApprox -- Does not take a tolerance facter, but uses Small.

func EqualApproximately

func EqualApproximately(a, b Matrix2D, tol float64) bool

EqualApproximately -- Does take a tolerance factor

func IsZeroApprox

func IsZeroApprox(a Matrix2D) bool

func IsZeroApproximately

func IsZeroApproximately(a Matrix2D, tol float64) bool

func MakePair

func MakePair(m1, m2 Matrix2D, places int) []string

func MakeZeroPair

func MakeZeroPair(m1, m2 Matrix2D, places int, tol float64) []string

MakeZeroPair -- now has the tolerance factor as its last param

func MakeZeroWithTol

func MakeZeroWithTol(M Matrix2D, places int, tolerance float64) []string

MakeZeroWithTol -- Just as it's name says, it take a tolerance factor as its last param.

func PrintStringInYellow

func PrintStringInYellow(s []string)

func Write

func Write(M Matrix2D, places int) []string

Write -- Converts the matrix to a string using FormatFloat with a G verb and places number of digits.

func WritePairln

func WritePairln(m1, m2 Matrix2D, places int)

func WriteZeroPairln

func WriteZeroPairln(m1, m2 Matrix2D, places int)

func WriteZeroln

func WriteZeroln(M Matrix2D, places int, tol float64)

WriteZeroln -- outputs the matrix after setting values below tolerance factor to zero.

func Writeln

func Writeln(M Matrix2D, places int)

Types

type LongComplexSlice

type LongComplexSlice []complex128 //

func Eigenvalues

func Eigenvalues(A Matrix2D) LongComplexSlice

func QR

type Matrix2D

type Matrix2D [][]float64

func Add

func Add(A, B Matrix2D) Matrix2D

func Balance

func Balance(A Matrix2D) Matrix2D

func BelowSmallMakeZero

func BelowSmallMakeZero(m Matrix2D) Matrix2D

func Copy

func Copy(Src Matrix2D) Matrix2D

func GaussJ

func GaussJ(A, B Matrix2D) Matrix2D

func Hessenberg

func Hessenberg(A Matrix2D) Matrix2D

func Invert

func Invert(A Matrix2D) Matrix2D

func LUFactor

func LUFactor(A Matrix2D, perm Permutation) (Matrix2D, bool)

func LUSolve

func LUSolve(LU, B Matrix2D, perm Permutation) Matrix2D

func Mul

func Mul(A, B Matrix2D) Matrix2D

func NewMatrix

func NewMatrix(R, C int) Matrix2D

func Random

func Random(matrix Matrix2D) Matrix2D

func ScalarMul

func ScalarMul(a float64, B Matrix2D) Matrix2D

func Solve

func Solve(A, B Matrix2D) Matrix2D

func SolveInvert

func SolveInvert(a, b Matrix2D) Matrix2D

func Sub

func Sub(A, B Matrix2D) Matrix2D

func Unit

func Unit(matrix Matrix2D) Matrix2D

func Zero

func Zero(matrix Matrix2D) Matrix2D

type Permutation

type Permutation []int

Jump to

Keyboard shortcuts

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