basic_algebra.h
Go to the documentation of this file.
603 void TMatrixVectorStrideProduct(unsigned int r,unsigned int c,double *A,unsigned int s,double *b,double *o);
Definition of the boolean type. void DifferenceVector(unsigned int s, double *v1, double *v2, double *v) Substracts two vectors. Definition: basic_algebra.c:223 void MatrixMatrixProduct(unsigned int ra, unsigned int ca, double *A, unsigned int cb, double *B, double *C) C = A * B. Definition: basic_algebra.c:647 void PrintVector(FILE *f, char *label, unsigned int n, double *v) Prints a vector. Definition: basic_algebra.c:829 double MaxVector(unsigned int m, double *v) Value of the maximum element of a vector. Definition: basic_algebra.c:148 double ColumnSquaredNorm(unsigned int k, unsigned int r, unsigned int c, double *m) Computes the squared norm of a column of a matrix. Definition: basic_algebra.c:578 void CosVector(unsigned int s, double *v, double *co) Cosine on a vector. Definition: basic_algebra.c:108 double SquaredDistanceTopology(unsigned int s, unsigned int *tp, double *v1, double *v2) Computes the squared distance of two points. Definition: basic_algebra.c:328 void PrintMatrix(FILE *f, char *label, unsigned int r, unsigned int c, double *m) Prints a matrix. Definition: basic_algebra.c:841 void SubtractVector(unsigned int s, double *v1, double *v2) Substracts a vector from another vector. Definition: basic_algebra.c:210 unsigned int MaxVectorElement(unsigned int m, double *v) Index of the maximum element of a vector. Definition: basic_algebra.c:124 double StdDev(unsigned int s, double m, double *v) Computes the standard deviation. Definition: basic_algebra.c:478 void ScaleVector2(double f, unsigned int s, double *v, double *vout) Scales a vector. Definition: basic_algebra.c:42 double DistanceTopologyMin(double t, unsigned int s, unsigned int *tp, double *v1, double *v2) Computes the distance of two points, if it is below a given threshold. Definition: basic_algebra.c:406 double Norm(unsigned int s, double *v) Computes the norm of a vector. Definition: basic_algebra.c:265 boolean CrossTopologyBorder(unsigned int s, unsigned int *tp, double *v1, double *v2) Determines if the line between two points crosses the topology boder. Definition: basic_algebra.c:437 double RowSquaredNorm(unsigned int k, unsigned int r, unsigned int c, double *m) Computes the squared norm of a row of a matrix. Definition: basic_algebra.c:557 void MatrixVectorProduct(unsigned int r, unsigned int c, double *A, double *b, double *o) Product of a matrix and a vector. Definition: basic_algebra.c:599 double DistanceTopology(unsigned int s, unsigned int *tp, double *v1, double *v2) Computes the distance of two points. Definition: basic_algebra.c:382 void AccumulateVector(unsigned int s, double *v1, double *v2) Adds a vector to another vectors. Definition: basic_algebra.c:55 void TMatrixMatrixProduct(unsigned int ra, unsigned int ca, double *A, unsigned int cb, double *B, double *C) C = A^t * B. Definition: basic_algebra.c:672 unsigned int MinVectorElement(unsigned int m, double *v) Index of the minimum element of a vector. Definition: basic_algebra.c:167 void SubMatrixFromMatrix(unsigned int nr1, unsigned int nc1, double *m1, unsigned int nri, unsigned int nci, unsigned int nr, unsigned int nc, double *m) Defines a submatrix in a matrix. Definition: basic_algebra.c:741 void SumVector(unsigned int s, double *v1, double *v2, double *v) Adds two vectors. Definition: basic_algebra.c:67 void TMatrixVectorStrideProduct(unsigned int r, unsigned int c, double *A, unsigned int s, double *b, double *o) Product of a transposed matrix and a vector. Definition: basic_algebra.c:631 void SinVector(unsigned int s, double *v, double *si) Sine on a vector. Definition: basic_algebra.c:116 Definitions of constants and macros used in several parts of the cuik library. void SetColumn(double *v, unsigned int k, unsigned int r, unsigned int c, double *m) Sets a column of a matrix. Definition: basic_algebra.c:545 void SubMatrixFromTMatrix(unsigned int nr1, unsigned int nc1, double *m1, unsigned int nri, unsigned int nci, unsigned int nr, unsigned int nc, double *m) Defines a submatrix in a matrix. Definition: basic_algebra.c:785 double MinCosinusBetweenSubSpaces(unsigned int m, unsigned int k, double *T1, double *T2) Computes the cosinus of the maximum angle between two lineal sub-spaces. Definition: basic_algebra.c:697 void SetRow(double *v, unsigned int k, unsigned int r, unsigned int c, double *m) Sets a row of a matrix. Definition: basic_algebra.c:533 double Distance(unsigned int s, double *v1, double *v2) Computes the distance of two points. Definition: basic_algebra.c:323 double SquaredDistanceTopologyMin(double t2, unsigned int s, unsigned int *tp, double *v1, double *v2) Computes the squared distance of two points. Definition: basic_algebra.c:352 void ArrayPi2Pi(unsigned int n, unsigned int *t, double *a) Applies PI2PI to an array. Definition: basic_algebra.c:496 void GetRow(unsigned int k, unsigned int r, unsigned int c, double *m, double *v) Gets a row from a matrix. Definition: basic_algebra.c:509 void ScaleVector(double f, unsigned int s, double *v) Scales a vector. Definition: basic_algebra.c:30 double NormWithStride(unsigned int s, unsigned int st, double *v) Computes the norm of a vector. Definition: basic_algebra.c:280 void SumVectorScale(unsigned int s, double *v1, double w, double *v2, double *v) Adds two vectors with a scale. Definition: basic_algebra.c:86 double MinVector(unsigned int m, double *v) Value of the minimum element of a vector. Definition: basic_algebra.c:191 double GeneralDotProduct(unsigned int s, double *v1, double *v2) Computes the dot product of two general vectors. Definition: basic_algebra.c:15 void GetColumn(unsigned int k, unsigned int r, unsigned int c, double *m, double *v) Gets a column from a matrix. Definition: basic_algebra.c:521 double SquaredDistance(unsigned int s, double *v1, double *v2) Computes the squared distance of two points. Definition: basic_algebra.c:297 void PrintTMatrix(FILE *f, char *label, unsigned int r, unsigned int c, double *m) Prints a transposed matrix. Definition: basic_algebra.c:857 void TMatrixVectorProduct(unsigned int r, unsigned int c, double *A, double *b, double *o) Product of a transposed matrix and a vector. Definition: basic_algebra.c:615 void DifferenceVectorTopology(unsigned int s, unsigned int *tp, double *v1, double *v2, double *v) Substracts two vectors. Definition: basic_algebra.c:245 |
Follow us!