Mercurial > hg > octave-lyh
diff src/xdiv.h @ 9661:afcf852256d2
optimize / and '\ for triangular matrices
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Wed, 23 Sep 2009 10:00:16 +0200 |
parents | eb63fbe60fab |
children | cd96d29c5efa |
line wrap: on
line diff
--- a/src/xdiv.h +++ b/src/xdiv.h @@ -25,15 +25,9 @@ #if !defined (octave_xdiv_h) #define octave_xdiv_h 1 -#include "oct-cmplx.h" +#include "mx-defs.h" #include "MatrixType.h" -class Matrix; -class ComplexMatrix; - -class NDArray; -class ComplexNDArray; - extern Matrix xdiv (const Matrix& a, const Matrix& b, MatrixType &typ); extern ComplexMatrix xdiv (const Matrix& a, const ComplexMatrix& b, MatrixType &typ); @@ -52,19 +46,14 @@ extern ComplexNDArray x_el_div (const Complex a, const NDArray& b); extern ComplexNDArray x_el_div (const Complex a, const ComplexNDArray& b); -extern Matrix xleftdiv (const Matrix& a, const Matrix& b, MatrixType &typ); +extern Matrix xleftdiv (const Matrix& a, const Matrix& b, MatrixType &typ, + blas_trans_type transt = blas_no_trans); extern ComplexMatrix xleftdiv (const Matrix& a, const ComplexMatrix& b, - MatrixType &typ); + MatrixType &typ, blas_trans_type transt = blas_no_trans); extern ComplexMatrix xleftdiv (const ComplexMatrix& a, const Matrix& b, - MatrixType &typ); + MatrixType &typ, blas_trans_type transt = blas_no_trans); extern ComplexMatrix xleftdiv (const ComplexMatrix& a, const ComplexMatrix& b, - MatrixType &typ); - -class FloatMatrix; -class FloatComplexMatrix; - -class FloatNDArray; -class FloatComplexNDArray; + MatrixType &typ, blas_trans_type transt = blas_no_trans); extern FloatMatrix xdiv (const FloatMatrix& a, const FloatMatrix& b, MatrixType &typ); extern FloatComplexMatrix xdiv (const FloatMatrix& a, const FloatComplexMatrix& b, @@ -84,19 +73,15 @@ extern FloatComplexNDArray x_el_div (const FloatComplex a, const FloatNDArray& b); extern FloatComplexNDArray x_el_div (const FloatComplex a, const FloatComplexNDArray& b); -extern FloatMatrix xleftdiv (const FloatMatrix& a, const FloatMatrix& b, MatrixType &typ); +extern FloatMatrix xleftdiv (const FloatMatrix& a, const FloatMatrix& b, MatrixType &typ, + blas_trans_type transt = blas_no_trans); extern FloatComplexMatrix xleftdiv (const FloatMatrix& a, const FloatComplexMatrix& b, - MatrixType &typ); + MatrixType &typ, blas_trans_type transt = blas_no_trans); extern FloatComplexMatrix xleftdiv (const FloatComplexMatrix& a, const FloatMatrix& b, - MatrixType &typ); + MatrixType &typ, blas_trans_type transt = blas_no_trans); extern FloatComplexMatrix xleftdiv (const FloatComplexMatrix& a, const FloatComplexMatrix& b, - MatrixType &typ); - + MatrixType &typ, blas_trans_type transt = blas_no_trans); -class DiagMatrix; -class FloatDiagMatrix; -class ComplexDiagMatrix; -class FloatComplexDiagMatrix; extern Matrix xdiv (const Matrix& a, const DiagMatrix& b); extern ComplexMatrix xdiv (const ComplexMatrix& a, const DiagMatrix& b);