introduction  —  namespaces  —  modules  —  classes  —  files  —  globals  —  members  —  examples  —  Marc Toussaint

array.h File Reference


Detailed Description

core file: defines the MT::Array class

Definition in file array.h.

Go to the source code of this file.

Namespaces

Classes

standard types

basic operators

more efficient basic operations (don't copy in new arrays)

matrix operations

distances

running sums

SVD etc

products

probability distribution operations

running products

min and max

randomizations

certain initializations

gnuplot fun

Defines

Variables


Function Documentation

double cofactor const doubleA A,
uint  i,
uint  j
 

the cofactor is the determinant of a 2D squared matrix after removing the ith row and the jth column

double determinant const doubleA A  ) 
 

the determinant of a 2D squared matrix

uint inverse doubleA inverse,
const doubleA A
 

Pseudo Inverse based on SVD; computes $B$ such that $ABA = A$

Referenced by inverse().

uint SUS const doubleA p  ) 
 

as above, but returns only the index of one sample

void SUS const doubleA p,
uint  n,
uintA s
 

stochastic universal sampling: given a probability vector p (that is positive in each component and sums to one), the returned array s is resized to length n and contains the states of n samples.

uint svd const doubleA A,
doubleA U,
doubleA d,
doubleA V,
bool  sort = true
[inline]
 

Singular Value Decomposition (from Numerical Recipes); computes $U, D, V$ with $A = U D V^T$ from $A$ such that $U$ and $V$ are orthogonal and $D$ diagonal (the returned array d is 1-dimensional) -- uses LAPACK is MT_LAPACK is defined

Definition at line 1509 of file array.h.

References MT::useLapack.

Referenced by svd().

[]