basic_algebra.h
Go to the documentation of this file.
694 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:264 void MatrixMatrixProduct(unsigned int ra, unsigned int ca, double *A, unsigned int cb, double *B, double *C) C = A * B. Definition: basic_algebra.c:797 void PrintVector(FILE *f, char *label, unsigned int n, double *v) Prints a vector. Definition: basic_algebra.c:979 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:728 void CosVector(unsigned int s, double *v, double *co) Cosine on a vector. Definition: basic_algebra.c:108 double DistanceTopologySubset(unsigned int s, unsigned int *tp, boolean *subset, double *v1, double *v2) Computes the distance of two points along a subset of components. Definition: basic_algebra.c:522 double SquaredDistanceTopology(unsigned int s, unsigned int *tp, double *v1, double *v2) Computes the squared distance of two points. Definition: basic_algebra.c:443 void PrintMatrix(FILE *f, char *label, unsigned int r, unsigned int c, double *m) Prints a matrix. Definition: basic_algebra.c:1000 void SubtractVector(unsigned int s, double *v1, double *v2) Substracts a vector from another vector. Definition: basic_algebra.c:251 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:628 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:556 double Norm(unsigned int s, double *v) Computes the norm of a vector. Definition: basic_algebra.c:356 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:587 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:707 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:749 double DistanceTopology(unsigned int s, unsigned int *tp, double *v1, double *v2) Computes the distance of two points. Definition: basic_algebra.c:498 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:822 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:891 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:781 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:695 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:935 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:847 void DifferenceVectorTopologySubset(unsigned int s, unsigned int *tp, boolean *subset, double *v1, double *v2, double *v) Substracts two vectors along some of its components. Definition: basic_algebra.c:325 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:683 double Distance(unsigned int s, double *v1, double *v2) Computes the distance of two points. Definition: basic_algebra.c:438 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:468 void DifferenceVectorSubset(unsigned int s, boolean *subset, double *v1, double *v2, double *v) Substracts two vectors along some of its components. Definition: basic_algebra.c:286 void ArrayPi2Pi(unsigned int n, unsigned int *t, double *a) Applies PI2PI to an array. Definition: basic_algebra.c:646 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:659 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:371 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 SquaredDistanceSubset(unsigned int s, boolean *subset, double *v1, double *v2) Computes the squared distance of two points along some components. Definition: basic_algebra.c:413 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:671 double SquaredDistance(unsigned int s, double *v1, double *v2) Computes the squared distance of two points. Definition: basic_algebra.c:388 void Vector2Range(double l, double u, double mode, unsigned int m, double *v) Scales a vector to a given range. Definition: basic_algebra.c:210 void PrintTMatrix(FILE *f, char *label, unsigned int r, unsigned int c, double *m) Prints a transposed matrix. Definition: basic_algebra.c:1016 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:765 void DifferenceVectorTopology(unsigned int s, unsigned int *tp, double *v1, double *v2, double *v) Substracts two vectors. Definition: basic_algebra.c:306 |
Follow us!