num

package
v1.5.28 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Arange

func Arange[T stat.Number](start T, end T, argv ...T) []T

Arange Return evenly spaced values within a given interval.

返回给定间隔内的等间距值

func Concat1D

func Concat1D[T stat.Number](a, b, c []T) [][]T

Concat1D

Translates slice objects to concatenation along the second axis.
沿第二个轴将切片对象转换为串联

func Dot added in v1.3.2

func Dot[T stat.Number](a, b [][]T) [][]T

Dot 二维点积

func Dot1D

func Dot1D[T stat.Number](a, b []T) T

func Dot2D

func Dot2D[T stat.Number](a, b [][]T) [][]T

Dot2D 二维矩阵点积

点积(dot)运算及简单应用 https://www.jianshu.com/p/482abac8798c

func Dot2D1

func Dot2D1[T stat.Number](a [][]T, b []T) []T

Dot2D1 二维矩阵和一维矩阵计算点积

func Dot2D1_v1 added in v1.3.2

func Dot2D1_v1[T stat.Number](a [][]T, b []T) []T

func Dot2D1_v2 added in v1.3.2

func Dot2D1_v2[T stat.Number](a [][]T, b []T) []T

func Dot2D_V1

func Dot2D_V1[T stat.Number](a, b [][]T) [][]T

func Dot_v1 added in v1.3.2

func Dot_v1[T stat.Number](a, b [][]T) [][]T

func Inverse

func Inverse(a [][]float64) [][]float64

Inverse 计算矩阵的(乘法)逆

Compute the (multiplicative) inverse of a matrix.

Given a square matrix `a`, return the matrix `ainv` satisfying
``dot(a, ainv) = dot(ainv, a) = eye(a.shape[0])``.

func Ones

func Ones[T stat.Number](v []T) []T

Ones v -> shape

func Pow

func Pow[T stat.Number](v []T, n int) []T

func Shape added in v1.3.2

func Shape[T stat.Number](x any) (r, c int)

func Slope added in v1.3.3

func Slope(x1 int, y1 float64, x2 int, y2 float64) float64

Slope 计算斜率

func Transpose2D

func Transpose2D[T stat.Number](x [][]T) [][]T

Transpose2D 矩阵转置

func TriangleBevel added in v1.3.3

func TriangleBevel(slope float64, x1 int, y1 float64, xn int) float64

TriangleBevel 三角形斜边

Types

This section is empty.

Jump to

Keyboard shortcuts

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