numeric.js

http://numericjs.com/documentation.html

方法描述
absAbsolute value
acosArc-cosine
addPointwise sum x+y
addeqPointwise sum x+=y
allAll the components of x are true
andPointwise x && y
andeqPointwise x &= y
anyOne or more of the components of x are true
asinArc-sine
atanArc-tangeant
atan2Arc-tangeant (two parameters)
bandPointwise x & y
benchBenchmarking routine
bnotBinary negation ~x
borBinary or x
bxorBinary xor x^y
ccsDimDimensions of sparse matrix
ccsDotSparse matrix-matrix product
ccsFullConvert sparse to full
ccsGatherGather entries of sparse matrix
ccsGetBlockGet rows/columns of sparse matrix
ccsLUPCompute LUP decomposition of sparse matrix
ccsLUPSolveSolve Ax=b using LUP decomp
ccsScatterScatter entries of sparse matrix
ccsSparseConvert from full to sparse
ccsTSolveSolve upper/lower triangular system
ccsSupported ops include: add/div/mul/geq/etc…
cLUCoordinate matrix LU decomposition
cLUsolveCoordinate matrix LU solve
cdelsqCoordinate matrix Laplacian
cdotMVCoordinate matrix-vector product
ceilPointwise Math.ceil(x)
cgridCoordinate grid for cdelsq
cloneDeep copy of Array
cosPointwise Math.cos(x)
detDeterminant
diagCreate diagonal matrix
dimGet Array dimensions
divPointwise x/y
diveqPointwise x/=y
dopriNumerical integration of ODE using Dormand-Prince RK method. Returns an object Dopri.
Dopri.atEvaluate the ODE solution at a point
方法描述
dot点乘,矩阵与向量相乘不需要先把向量转置
eig特征值m.lambda.x和特征向量m.E.x
epsilon2.220446049250313e-16
eqPointwise comparison x === y
expPointwise Math.exp(x)
floorPoinwise Math.floor(x)
geqPointwise x>=y
getBlockExtract a block from a matrix
getDiagGet the diagonal of a matrix
gtPointwise x>y
identityIdentity matrix
imageURLEncode a matrix as an image URL
invMatrix inverse
isFinitePointwise isFinite(x)
isNaNPointwise isNaN(x)
largeArrayDon’t prettyPrint Arrays larger than this
leqPointwise x<=y
linspaceGenerate evenly spaced values
logPointwise Math.log(x)
lshiftPointwise x<
lshifteqPointwise x<<=y
ltPointwise x
LUDense LU decomposition
LUsolveDense LU solve
mapreduceMake a pointwise map-reduce function
modPointwise x%y
modeqPointwise x%=y
mulPointwise x*y
negPointwise -x
neqPointwise x!==y
norm2Square root of the sum of the square of the entries of x
norm2SquaredSum of squares of entries of x
norminfLargest modulus entry of x
notPointwise logical negation !x
orPointwise logical or x
oreqPointwise x
parseCSVParse a CSV file into an Array
parseDatePointwise parseDate(x)
parseFloatPointwise parseFloat(x)
pointwiseCreate a pointwise function
powPointwise Math.pow(x)
precisionNumber of digits to prettyPrint
prettyPrintPretty-prints x
randomCreate an Array of random numbers
repCreate an Array by duplicating values
方法描述
roundPointwise Math.round(x)
rrshiftPointwise x>>>y
rrshifteqPointwise x>>>=y
rshiftPointwise x>>y
rshifteqPointwise x>>=y
samex and y are entrywise identical
seedrandomThe seedrandom module
setBlockSet a block of a matrix
sinPointwise Math.sin(x)
solveSolve Ax=b
solveLPSolve a linear programming problem
solveQPSolve a quadratic programming problem
splineCreate a Spline object
Spline.atEvaluate the Spline at a point
Spline.diffDifferentiate the Spline
Spline.rootsFind all the roots of the Spline
sqrtPointwise Math.sqrt(x)
subPointwise x-y
subeqPointwise x-=y
sumSum all the entries of x
svdSingular value decomposition
tCreate a tensor type T (may be complex-valued)
T.Supported are: abs, add, cos, diag, div, dot, exp, getBlock, getDiag, inv, log, mul, neg, norm2, setBlock, sin, sub, transpose
T.conjPointwise complex conjugate
T.fftFast Fourier transform
T.getRead an entry
T.getRowGet a row
T.getRowsGet a range of rows
T.ifftInverse FFT
T.reciprocalPointwise 1/z
T.setSet an entry
T.setRowSet a row
T.setRowsSet a range of rows
T.transjugateThe conjugate-transpose of a matrix
tanPointwise Math.tan(x)
tensorTensor product ret[i][j] = x[i]*y[j]
toCSVMake a CSV file
transposeMatrix transpose
uncminUnconstrained optimization
versionVersion string for the numeric library
xorPointwise x^y
xoreqPointwise x^=y
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值