MCPcopy Create free account

hub / github.com/andeya/algorithm / functions

Functions3,549 in github.com/andeya/algorithm

↓ 8 callersFunctionminInt
(x, y int)
go.matrix/util.go:30
↓ 8 callersFunctionnewDiceRollP
(number, faces, adder int, half bool, rng intRng, repeatOnMaxLast bool)
dice/dice.go:62
↓ 8 callersFunctiontrmvTest
(t *testing.T, A *matrix.FloatMatrix, flags Flags, nb int)
matops/calgo/ttrm_test.go:19
↓ 7 callersMethodApply
Compute A = fn(A) by applying function fn element wise to A. If indexes array is non-empty function is applied to elements of A indexed by the content
matrix/dense_math.go:206
↓ 7 callersMethodCopy
()
go.matrix/sparse.go:226
↓ 7 callersFunctionDecomposeCHOL
* * Compute the Cholesky factorization of a symmetric positive definite * N-by-N matrix A. * * Arguments: * A On entry, the symmetric matrix
matops/chol.go:115
↓ 7 callersFunctionDecomposeQRT
* * Compute QR factorization of a M-by-N matrix A using compact WY transformation: A = Q * R, * where Q = I - Y*T*Y.T, T is block reflector and Y ho
matops/qrwy.go:513
↓ 7 callersMethodDenseMatrix
()
go.matrix/matrix.go:51
↓ 7 callersMethodFloor
()
fixed/fixed.go:89
↓ 7 callersMethodInv
Compute in-place inverse A[i,j] = 1.0/A[i,j]. If indexes is empty calculates for all elements
matrix/dense_math.go:73
↓ 7 callersMethodInverse
()
go.matrix/pivot_basic.go:31
↓ 7 callersFunctionIsPrime
IsPrime returns true if n is prime. Typical run time is about 100 ns. TODO rename to IsPrimeUint32
mathutil/primes.go:26
↓ 7 callersFunctionMultDiag
* * Compute * C = C*diag(D) flags & RIGHT == true * C = diag(D)*C flags & LEFT == true * * Arguments * C M-by-N matrix if f
matops/diag.go:26
↓ 7 callersFunctionNewOSGB36Coord
Create a new OSGB36 coordinate from literals. The parameter prec plays an important role in how the literals are interpreted: OSGB36Auto - for easting
cartconvert/cartconvert/osgb36/osgb36.go:301
↓ 7 callersFunctionNewPos
(x, y float64)
pso-go/pso_test.go:43
↓ 7 callersFunctionProbablyPrimeBigInt
ProbablyPrimeBigInt returns true if n is prime or n is a pseudoprime to base a. It implements the Miller-Rabin primality test for one specific value o
mathutil/mathutil.go:587
↓ 7 callersMethodReset
Reset cached score
ga/genome.go:20
↓ 7 callersFunctionSolveDiag
* * Compute * X = B*diag(D).-1 flags & RIGHT == true * X = diag(D).-1*C flags & LEFT == true * * Arguments: * B M-by-N matr
matops/diag.go:84
↓ 7 callersMethodStack
* Get a new matrix [A; B], with A above B. */
go.matrix/dense.go:198
↓ 7 callersMethodSumPacked
Calculate sum of packed dimensions over set of keys.
cvx/sets/sets.go:225
↓ 7 callersMethodadd
(s segment)
polyclip-go/connector.go:33
↓ 7 callersFunctionbcnt
* From: http://graphics.stanford.edu/~seander/bithacks.html#CountBitsSetKernighan Counting bits set, Brian Kernighan's way unsigned int v; // count
mathutil/all_test.go:1018
↓ 7 callersFunctionbytes2String
(b []byte)
chinaid/china_id.go:257
↓ 7 callersFunctioncontinue1x3to1x2
* Repartition 1 by 2 blocks to 1 by 3 blocks. pRIGHT: AL | AR -- A0 A1 | A2 pLEFT: AL | AR <-- A0 | A1 A2 */
matops/partition.go:182
↓ 7 callersFunctioncreateorreturnconfig
(conf *config)
schoolcalc/webzapfen/config.go:45
↓ 7 callersFunctionendpointLess
The ordering is reversed because push and pop are faster. [MC: fragment from .c source below:] Return true means that [...] e1 is processed by the alg
polyclip-go/eventqueue.go:61
↓ 7 callersFunctiononError
(msg string)
matops/mmult.go:46
↓ 7 callersFunctionrepartition1x2to1x3
* Repartition 1 by 2 blocks to 1 by 3 blocks. pRIGHT: AL | AR --> A0 | A1 A2 pLEFT: AL | AR --> A0 A1 | A2 Parameter As is left or right bl
matops/partition.go:153
↓ 7 callersFunctionstripTrailingZeros
(s string)
go-humanize/ftoa.go:5
↓ 6 callersMethodAf
(u, v *matrix.FloatMatrix, alpha, beta float64, trans la.Option)
cvx/interfaces.go:44
↓ 6 callersMethodAppend
Append matrices to matrix set.
cvx/sets/sets.go:69
↓ 6 callersMethodClone
()
go-symexpr/types.go:132
↓ 6 callersFunctionDMultMV
Matrix-Vector operators blas GEMV; blocked version Y = alpha*A*X + beta*Y; Y is M*1, X is N*1 and A is M*N
matops/calgo/cmops.go:301
↓ 6 callersFunctionDecomposeLDL
* * Compute an LDLT factorization of a symmetric N-by-N matrix with partial pivoting. * * Arguments: * A On entry, the N-by-N matrix to be
matops/ldl.go:436
↓ 6 callersFunctionDotProduct
Dot-product of two Vectors.
vector/vector.go:191
↓ 6 callersMethodExpandToContainCoord
(p Coord)
geom/rect.go:73
↓ 6 callersFunctionFactorInt
FactorInt returns prime factorization of n > 1 or nil otherwise. Resulting factors are ordered by Prime. Typical run time is few µs.
mathutil/primes.go:273
↓ 6 callersFunctionFloatMatrixFromTable
Create a column-major matrix from a array of arrays. Parameter order indicates if data is array of rows (RowOrder) or array of columns (ColumnOrder).
matrix/dense.go:162
↓ 6 callersFunctionFloatNew
Create a column-major matrix from a flat array of elements. Assumes values are in column-major order.
matrix/dense.go:60
↓ 6 callersFunctionFtoa
Ftoa converts a float to a string with no trailing zeros.
go-humanize/ftoa.go:21
↓ 6 callersMethodGf
(u, v *matrix.FloatMatrix, alpha, beta float64, trans la.Option)
cvx/interfaces.go:25
↓ 6 callersFunctionIsPrimeUint64
IsPrimeUint64 returns true if n is prime. Typical run time is few tens of µs. SPRP bases: http://miller-rabin.appspot.com
mathutil/primes.go:89
↓ 6 callersMethodLength
()
geom/path.go:84
↓ 6 callersFunctionMVUpdateTrm
Matrix-vector triangular update A = A + alpha*X*Y.T A is N*N matrix, X is row or column vector of length N Y is row or column vector of legth N. flags
matops/mvec.go:161
↓ 6 callersFunctionMakeDenseCopy
(A MatrixRO)
go.matrix/dense.go:314
↓ 6 callersMethodModf
(y float64)
fixed/fixed.go:78
↓ 6 callersFunctionNewNull
()
go-symexpr/expr.go:168
↓ 6 callersFunctionNewSortStrider
(data Sort, stride int)
stat/types.go:100
↓ 6 callersFunctionOnes
(rows, cols int)
go.matrix/dense.go:256
↓ 6 callersMethodProbScores
ProbScores works the same as LogScores, but delivers actual probabilities as discussed above. Note that float64 underflow is possible if the word list
bayesian/bayesian.go:295
↓ 6 callersFunctionProbablyPrimeBigInt_32
ProbablyPrimeBigInt_32 returns true if n is prime or n is a pseudoprime to base a. It implements the Miller-Rabin primality test for one specific valu
mathutil/mathutil.go:557
↓ 6 callersFunctionQuantileFromSortedData
* quantiles.go * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Jim Davies, Brian Gough * Copyright (C) 2012, 2013 G.vd.Schoot * * This pro
stat/quantiles.go:26
↓ 6 callersMethodSize
()
matops/simple_test.go:24
↓ 6 callersMethodSparseMatrix
()
go.matrix/matrix.go:52
↓ 6 callersMethodWriteTo
Serialize this classifier to GOB and write to Writer
bayesian/bayesian.go:432
↓ 6 callersFunction_dmmat_rank_diag
matops/calgo/dmmat_rank.c:17
↓ 6 callersMethodbackup
backup steps back one rune. Can only be called once per call of next.
go-symexpr/lexer.go:188
↓ 6 callersFunctionbenchmarkBig1eN
(b *testing.B, r *FCBig)
mathutil/all_test.go:260
↓ 6 callersFunctionbenchmarkModPow
(b *testing.B, base, e, m uint32)
mathutil/mersenne/all_test.go:780
↓ 6 callersFunctionbenchmarkModPowBig
(b *testing.B, base, e, m uint32)
mathutil/mersenne/all_test.go:789
↓ 6 callersFunctionbenchmarkPopCountBigInt
(b *testing.B, bits int)
mathutil/all_test.go:3447
↓ 6 callersFunctioncheckConeLpDimensions
(dims *sets.DimensionSet)
cvx/conelp.go:55
↓ 6 callersFunctioncheckDims
=========================== [ Helper Functions ] =========================== Check if two vectors have the same dimension.
vector/vector.go:219
↓ 6 callersFunctiondump
(poly polyclip.Polygon)
polyclip-go/bugs_test.go:55
↓ 6 callersFunctionfactor
(w Interface)
stat/wvariance.go:45
↓ 6 callersFunctionimin
(a, b int)
matops/lu.go:16
↓ 6 callersFunctionjnrm2
* Returns sqrt(x' * J * x) where J = [1, 0; 0, -I], for a vector x in a second order cone. */
cvx/misc.go:1412
↓ 6 callersFunctionleftAlignTerms
this function left aligns children terms ( ie move nils to end of terms[] ) and returns the number of children
go-symexpr/simp.go:939
↓ 6 callersFunctionmakeComplexMatrix
Create a column-major matrix from a flat array of elements. Elements slice is not copied to internal elements but assigned, so underlying array holdin
matrix/cdense.go:482
↓ 6 callersFunctionmakeFloatMatrix
Create a column-major matrix from a flat array of elements. Elements slice is not copied to internal elements but assigned, so underlying array holdin
matrix/dense.go:604
↓ 6 callersFunctionmaxvec
(vec []float64)
cvx/misc.go:38
↓ 6 callersFunctionunblkQRBlockReflector
* * like LAPACK/dlafrt.f * * Build block reflector T from HH reflector stored in TriLU(A) and coefficients * in tau. * * Q = I - Y*T*Y.T; Househ
matops/qrwy.go:28
↓ 6 callersFunctionupdateWithQT
compute: Q.T*C = (I -Y*T*Y.T).T*C == C - Y*(C.T*Y*T).T or Q*C = (I -Y*T*Y.T)*C == C - Y*(C.T*Y*T.T).T where C = /C1\ Y = /Y1\ \C2/ \Y
matops/qrwy.go:265
↓ 5 callersMethodAmISame
(r Expr)
go-symexpr/compare.go:39
↓ 5 callersMethodApply
Compute A = fn(A) by applying function fn element wise to A. If indexes array is non-empty function is applied to elements of A indexed by the content
matrix/cdense_math.go:232
↓ 5 callersMethodArrays
* Returns an array of slices referencing the matrix data. Changes to the slices effect changes to the matrix. */
go.matrix/dense.go:26
↓ 5 callersFunctionBitLenUint64
BitLenUint64 returns the bit width of the non zero part of n.
mathutil/bits.go:85
↓ 5 callersMethodBoundingBox
BoundingBox finds minimum and maximum coordinates of points in a contour.
polyclip-go/geom.go:82
↓ 5 callersMethodContains
Checks if a point is inside a contour using the "point in polygon" raycast method. This works for all polygons, whether they are clockwise or counter
polyclip-go/geom.go:119
↓ 5 callersFunctionDecomposeQR
* * Compute QR factorization of a M-by-N matrix A: A = Q * R. * * Arguments: * A On entry, the M-by-N matrix A. On exit, the elements on and ab
matops/qrwy.go:470
↓ 5 callersMethodEncode
(v interface{})
cartconvert/cartconvserv/cartconvserv.go:48
↓ 5 callersMethodExpandToContainRect
(q Rect)
geom/rect.go:80
↓ 5 callersMethodF1
Returns a tuple (f, Df) where f is of size (mnl, 1) containing f(x) Df is matrix of size (mnl, n) containing the derivatives of f at x: Df[k,:] is the
cvx/cp.go:119
↓ 5 callersFunctionFloatParse
(s string)
matrix/dense_string.go:85
↓ 5 callersMethodIsEmpty
()
evaler/stack/stack.go:51
↓ 5 callersMethodL
* Get a copy of this matrix with 0s above the diagonal. */
go.matrix/dense.go:129
↓ 5 callersMethodLess
(int, int)
stat/types.go:87
↓ 5 callersFunctionMod
Mod sets mod to n % Mexp and returns mod. It panics for exp == 0 || exp >= math.MaxInt32 || n < 0.
mathutil/mersenne/mersenne.go:186
↓ 5 callersFunctionModPowBigInt
ModPowBigInt computes (b^e)%m. Returns nil for e < 0. It panics for m == 0 || b == e == 0.
mathutil/mathutil.go:323
↓ 5 callersFunctionMultQ
* * Multiply and replace C with Q*C or Q.T*C where Q is a real orthogonal matrix * defined as the product of k elementary reflectors. * * Q = H
matops/qrwym.go:567
↓ 5 callersFunctionMultQT
* * Multiply and replace C with Q*C or Q.T*C where Q is a real orthogonal matrix * defined as the product of k elementary reflectors and block refle
matops/qrwym.go:639
↓ 5 callersFunctionNew
(x float64)
fixed/fixed.go:27
↓ 5 callersFunctionNewCos
(e Expr)
go-symexpr/types.go:162
↓ 5 callersFunctionNewEllipsoid
HELMERT Transformation - http://en.wikipedia.org/wiki/Helmert_transformation Returns a new ellipsoid by the given major axis a and major axis b in met
cartconvert/cartconvert/cartconvert.go:993
↓ 5 callersFunctionNewFrom
Create a Vector from a slice. Its dimension is equal to len(slice).
vector/vector.go:40
↓ 5 callersFunctionParseBigBytes
ParseBigBytes parses a string representation of bytes into the number of bytes it represents. See also: BigBytes, BigIBytes. ParseBigBytes("42MB") -
go-humanize/bigbytes.go:139
↓ 5 callersFunctionParseBytes
ParseBytes parses a string representation of bytes into the number of bytes it represents. See Also: Bytes, IBytes. ParseBytes("42MB") -> 42000000,
go-humanize/bytes.go:110
↓ 5 callersFunctionPopCountUint32
PopCountUint32 returns population count of n (number of bits set in n).
mathutil/bits.go:161
↓ 5 callersFunctionPopCountUint64
PopCountUint64 returns population count of n (number of bits set in n).
mathutil/bits.go:194
↓ 5 callersMethodSetFrom
(g FloatGenerator, indexes ...int)
matrix/dense.go:524
← previousnext →301–400 of 3,549, ranked by callers