Documentation
¶
Index ¶
- func RealToComplex(x []float64) []complex128
- type Matrix
- func (m Matrix[T]) Add(other Matrix[T]) Matrix[T]
- func (m *Matrix[T]) Apply(f func(T) T)
- func (m Matrix[T]) Div(other Matrix[T]) Matrix[T]
- func (m Matrix[T]) Get(i, j int) T
- func (m Matrix[T]) GetRow(i int) Vec[T]
- func (m Matrix[T]) IntegrateRows(x Vec[T]) Vec[T]
- func (m Matrix[T]) IterRows() iter.Seq2[int, Vec[T]]
- func (m Matrix[T]) Mul(other Matrix[T]) Matrix[T]
- func (m *Matrix[T]) ScaleBy(x T)
- func (m *Matrix[T]) Set(i, j int, value T)
- func (m Matrix[T]) Slice(i, k, j, l int) Matrix[T]
- func (m Matrix[T]) SliceWithCopy(i, k, j, l int) Matrix[T]
- func (m Matrix[T]) Sub(other Matrix[T]) Matrix[T]
- func (m Matrix[T]) Sum() T
- func (m Matrix[T]) Transpose() Matrix[T]
- type Number
- type Vec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RealToComplex ¶ added in v0.3.0
func RealToComplex(x []float64) []complex128
Types ¶
type Matrix ¶ added in v0.3.0
func FromValues ¶ added in v0.3.0
func (Matrix[T]) IntegrateRows ¶ added in v0.3.1
func (Matrix[T]) SliceWithCopy ¶ added in v0.3.0
type Number ¶
type Number interface {
float64 | complex128
}
type Vec ¶ added in v0.3.1
type Vec[T Number] []T
by Vec I mean a continuous 1d array of stride 1. The flat data behind a matrix or a slice of a matrix is not a vec. Each row should be when returned by IterRows
func (Vec[T]) Trapezoidal ¶ added in v0.3.1
Click to show internal directories.
Click to hide internal directories.