Functions
fMatrix.cpp File Reference

Function implementations for fMat/fVec classes. More...

#include "fMatrix.h"
Include dependency graph for fMatrix.cpp:

Go to the source code of this file.

Functions

fMat eigs (const fMat &mat, double *w)
 
fMat inv (const fMat &mat)
 
int inv_col_replaced (const fMat &P, const fMat &q, const fMat &m2d, fMat &X, fMat &y)
 
int inv_enlarge (const fMat &m12, const fMat &m21, const fMat &m22, const fMat &P, fMat &X, fMat &y, fMat &z, fMat &w)
 
int inv_row_replaced (const fMat &P, const fMat &q, const fMat &m2d, fMat &X, fMat &y)
 
int inv_shrink (const fMat &P, const fMat &q, const fMat &r, const fMat &s, fMat &X)
 
fMat inv_svd (const fMat &mat, int lwork)
 
fMat lineq (const fMat &A, const fMat &b)
 
fMat lineq_sr (const fMat &A, fVec &w_err, fVec &w_norm, double k, const fMat &b)
 
fMat lineq_svd (const fMat &A, const fMat &b, int lwork)
 
fMat operator* (double d, const fMat &mat)
 
fMat operator* (const fMat &mat, double d)
 
fMat operator* (const fMat &mat1, const fMat &mat2)
 
fVec operator* (const fMat &mat, const fVec &vec)
 
double operator* (const fVec &vec1, const fVec &vec2)
 
fVec operator* (double d, const fVec &vec)
 
fVec operator* (const fVec &vec, double d)
 
fMat operator+ (const fMat &mat1, const fMat &mat2)
 
fVec operator+ (const fVec &vec1, const fVec &vec2)
 
fMat operator- (const fMat &mat)
 
fMat operator- (const fMat &mat1, const fMat &mat2)
 
fVec operator- (const fVec &vec)
 
fVec operator- (const fVec &vec1, const fVec &vec2)
 
fMat operator/ (const fMat &mat, double d)
 
fVec operator/ (const fVec &vec, double d)
 
fMat p_inv (const fMat &mat)
 
fMat p_inv_svd (const fMat &mat, int lwork)
 
fMat sr_inv (const fMat &mat, fVec &w_err, fVec &w_norm, double k)
 
fMat sr_inv_svd (const fMat &mat, fVec &w_err, fVec &w_norm, double k, int lwork)
 
fMat tran (const fMat &mat)
 

Detailed Description

Function implementations for fMat/fVec classes.

Author
Katsu Yamane
Date
06/17/2003

Definition in file fMatrix.cpp.

Function Documentation

◆ eigs()

fMat eigs ( const fMat mat,
double *  w 
)

Definition at line 1659 of file fMatrix.cpp.

◆ inv()

fMat inv ( const fMat mat)

Definition at line 176 of file fMatrix.cpp.

◆ inv_col_replaced()

int inv_col_replaced ( const fMat P,
const fMat q,
const fMat m2d,
fMat X,
fMat y 
)

Computes the inverse when some columns are replaced:

| X | = | M1  m2' |-1
| y |                

where

| P | = | M1  m2 |-1
| q |   |        |  

are known

Definition at line 1357 of file fMatrix.cpp.

◆ inv_enlarge()

int inv_enlarge ( const fMat m12,
const fMat m21,
const fMat m22,
const fMat P,
fMat X,
fMat y,
fMat z,
fMat w 
)

Computes the inverse of an enlarged matrix:

| X  y | = | M11  m12 |-1
| z  w |   | m21  m22 |  

where M11, m12, m21, m22, and P=M11^{-1} are known

Definition at line 1288 of file fMatrix.cpp.

◆ inv_row_replaced()

int inv_row_replaced ( const fMat P,
const fMat q,
const fMat m2d,
fMat X,
fMat y 
)

Computes the inverse when some rows are replaced:

| X  y | = | M1  |-1
|      |   | m2' |  

where

| P  q | = | M1 |-1
|      |   | m2 |  

are known

Definition at line 1334 of file fMatrix.cpp.

◆ inv_shrink()

int inv_shrink ( const fMat P,
const fMat q,
const fMat r,
const fMat s,
fMat X 
)

Computes the inverse of a shrinked matrix: X = M11^(-1) where

| P  q | = | M11 m12 |-1
| r  s |   | m21 m22 |  

are known

Definition at line 1318 of file fMatrix.cpp.

◆ inv_svd()

fMat inv_svd ( const fMat mat,
int  lwork 
)

Definition at line 484 of file fMatrix.cpp.

◆ lineq()

fMat lineq ( const fMat A,
const fMat b 
)

Definition at line 137 of file fMatrix.cpp.

◆ lineq_sr()

fMat lineq_sr ( const fMat A,
fVec w_err,
fVec w_norm,
double  k,
const fMat b 
)

Definition at line 930 of file fMatrix.cpp.

◆ lineq_svd()

fMat lineq_svd ( const fMat A,
const fMat b,
int  lwork 
)

Definition at line 416 of file fMatrix.cpp.

◆ operator*() [1/7]

fMat operator* ( double  d,
const fMat mat 
)

Definition at line 1130 of file fMatrix.cpp.

◆ operator*() [2/7]

fMat operator* ( const fMat mat,
double  d 
)

Definition at line 1138 of file fMatrix.cpp.

◆ operator*() [3/7]

fMat operator* ( const fMat mat1,
const fMat mat2 
)

Definition at line 1268 of file fMatrix.cpp.

◆ operator*() [4/7]

fVec operator* ( const fMat mat,
const fVec vec 
)

Definition at line 1412 of file fMatrix.cpp.

◆ operator*() [5/7]

double operator* ( const fVec vec1,
const fVec vec2 
)

Definition at line 1612 of file fMatrix.cpp.

◆ operator*() [6/7]

fVec operator* ( double  d,
const fVec vec 
)

Definition at line 1632 of file fMatrix.cpp.

◆ operator*() [7/7]

fVec operator* ( const fVec vec,
double  d 
)

Definition at line 1639 of file fMatrix.cpp.

◆ operator+() [1/2]

fMat operator+ ( const fMat mat1,
const fMat mat2 
)

Definition at line 1187 of file fMatrix.cpp.

◆ operator+() [2/2]

fVec operator+ ( const fVec vec1,
const fVec vec2 
)

Definition at line 1574 of file fMatrix.cpp.

◆ operator-() [1/4]

fMat operator- ( const fMat mat)

Definition at line 1088 of file fMatrix.cpp.

◆ operator-() [2/4]

fMat operator- ( const fMat mat1,
const fMat mat2 
)

Definition at line 1208 of file fMatrix.cpp.

◆ operator-() [3/4]

fVec operator- ( const fVec vec)

Definition at line 1531 of file fMatrix.cpp.

◆ operator-() [4/4]

fVec operator- ( const fVec vec1,
const fVec vec2 
)

Definition at line 1590 of file fMatrix.cpp.

◆ operator/() [1/2]

fMat operator/ ( const fMat mat,
double  d 
)

Definition at line 1435 of file fMatrix.cpp.

◆ operator/() [2/2]

fVec operator/ ( const fVec vec,
double  d 
)

Definition at line 1605 of file fMatrix.cpp.

◆ p_inv()

fMat p_inv ( const fMat mat)

Definition at line 191 of file fMatrix.cpp.

◆ p_inv_svd()

fMat p_inv_svd ( const fMat mat,
int  lwork 
)

Definition at line 501 of file fMatrix.cpp.

◆ sr_inv()

fMat sr_inv ( const fMat mat,
fVec w_err,
fVec w_norm,
double  k 
)

Definition at line 226 of file fMatrix.cpp.

◆ sr_inv_svd()

fMat sr_inv_svd ( const fMat mat,
fVec w_err,
fVec w_norm,
double  k,
int  lwork 
)

Definition at line 536 of file fMatrix.cpp.

◆ tran()

fMat tran ( const fMat mat)

Definition at line 1013 of file fMatrix.cpp.



openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Sep 8 2022 02:24:06