Documentation
¶
Index ¶
- Constants
- func EqualApprox(a, b Matrix2D) bool
- func EqualApproximately(a, b Matrix2D, tol float64) bool
- func IsZeroApprox(a Matrix2D) bool
- func IsZeroApproximately(a Matrix2D, tol float64) bool
- func MakePair(m1, m2 Matrix2D, places int) []string
- func MakeZeroPair(m1, m2 Matrix2D, places int, tol float64) []string
- func MakeZeroWithTol(M Matrix2D, places int, tolerance float64) []string
- func PrintStringInYellow(s []string)
- func Random(m Matrix2D)
- func Unit(m Matrix2D)
- func Write(M Matrix2D, places int) []string
- func WritePairln(m1, m2 Matrix2D, places int)
- func WriteZeroPairln(m1, m2 Matrix2D, places int)
- func WriteZeroln(M Matrix2D, places int, tol float64)
- func Writeln(M Matrix2D, places int)
- func Zero(m Matrix2D)
- type LongComplexSlice
- type Matrix2D
- func Add(A, B Matrix2D) Matrix2D
- func Balance(A Matrix2D) Matrix2D
- func BelowSmallMakeZero(m Matrix2D) Matrix2D
- func Copy(Src Matrix2D) Matrix2D
- func GaussJ(A, B Matrix2D) Matrix2D
- func Hessenberg(A Matrix2D) Matrix2D
- func Invert(A Matrix2D) Matrix2D
- func LUFactor(A Matrix2D, perm Permutation) (Matrix2D, bool)
- func LUSolve(LU, B Matrix2D, perm Permutation) Matrix2D
- func Mul(A, B Matrix2D) Matrix2D
- func New(R, C int) Matrix2D
- func NewMatrix(R, C int) Matrix2D
- func ScalarMul(a float64, B Matrix2D) Matrix2D
- func Solve(A, B Matrix2D) Matrix2D
- func SolveInvert(a, b Matrix2D) Matrix2D
- func Sub(A, B Matrix2D) Matrix2D
- type Permutation
Constants ¶
View Source
const LastAltered = "15 Oct 2024"
View Source
const Small = 1.0e-10
View Source
const SubscriptDim = 8192
Variables ¶
This section is empty.
Functions ¶
func EqualApprox ¶
EqualApprox -- Does not take a tolerance facter, but uses Small.
func EqualApproximately ¶
EqualApproximately -- Does take a tolerance factor
func IsZeroApprox ¶
func IsZeroApproximately ¶
func MakeZeroPair ¶
MakeZeroPair -- now has the tolerance factor as its last param
func MakeZeroWithTol ¶
MakeZeroWithTol -- Just as it's name says, it take a tolerance factor as its last param.
func PrintStringInYellow ¶
func PrintStringInYellow(s []string)
func Write ¶
Write -- Converts the matrix to a string using FormatFloat with a G verb and places number of digits.
func WritePairln ¶
func WriteZeroPairln ¶
func WriteZeroln ¶
WriteZeroln -- outputs the matrix after setting values below tolerance factor to zero.
Types ¶
type LongComplexSlice ¶
type LongComplexSlice []complex128 //
func Eigenvalues ¶
func Eigenvalues(A Matrix2D) LongComplexSlice
func QR ¶
func QR(A Matrix2D) LongComplexSlice
type Matrix2D ¶
type Matrix2D [][]float64
func BelowSmallMakeZero ¶
func Hessenberg ¶
func LUSolve ¶
func LUSolve(LU, B Matrix2D, perm Permutation) Matrix2D
func SolveInvert ¶
type Permutation ¶
type Permutation []int
Click to show internal directories.
Click to hide internal directories.