TBCI Numerical high perf. C++ Library  2.8.0
Classes | Macros | Functions | Variables
f_matrix.h File Reference

header file to implement classes TBCI::F_Matrix, TBCI::F_TMatrix, TBCI::F_TSMatrix. More...

#include "tbci/vector.h"
#include "tbci/matrix_sig.h"
#include "tbci/matrix.h"
#include "tbci/cscmatrix.h"
Include dependency graph for f_matrix.h:

Go to the source code of this file.

Classes

class  CSCMatrix< T >
 exception class: Use MatErr from matrix.h More...
 
class  F_Matrix< T >
 
class  F_TMatrix< T >
 Temporary Base Class (non referable!) (acc. More...
 
class  F_TSMatrix< T >
 Temporary object for scaled matrices. More...
 
class  BdMatrix< T >
 The class BdMatrix is an implementation to store and do operations on sparse Matrices with a band structure. More...
 
class  Tensor< T >
 Tensor class including arithmetics. More...
 
class  Matrix< T >
 
class  TMatrix< T >
 
class  F_TMatrix< T >
 Temporary Base Class (non referable!) (acc. More...
 
class  F_TSMatrix< T >
 Temporary object for scaled matrices. More...
 
class  F_Matrix< T >
 

Macros

#define _VEC   vec
 
#define _ENDVEC   endvec
 
#define _DIM   dim
 
#define _ROW   row
 
#define _COL   col
 
#define _FAC   fac
 
#define LAPACK_INLINE
 
#define F_TMFORALL_M(op)
 
#define F_TMFORALL_TM(op)
 
#define F_TMFORALL_TS(op)
 
#define F_TMFORALL_T(op)
 
#define F_STDDEF_TMM(op)
 
#define F_STDDEF_TMTM(op)
 
#define F_STDDEF_TMT(op)
 
#define F_STDDEF_TTM(op)
 
#define F_STDDEF_TM(op)
 
#define F_STDDEF_TSM(op)
 
#define F_STDDEF_TSTM(op)
 
#define F_STDDEF_TSTS(op)
 
#define F_STDDEF_TST(op)
 
#define F_STDDEF_TTS(op)
 
#define F_MSTDDEF_T(op)
 
#define F_MSTDDEF_M(op)
 
#define F_MSTDDEF_TM(op)
 
#define F_MSTDDEF_TS(op)
 

Functions

 INST (template< typename T > class F_TMatrix friend F_TMatrix< T > operator+(const T &, F_TMatrix< T >);) template< typename T > inline F_TMatrix< T > operator+(const T &a
 
 INST (template< typename T > class F_TMatrix friend F_TMatrix< T > operator-(const T &, F_TMatrix< T >);) template< typename T > inline F_TMatrix< T > operator-(const T &a
 
template<typename T >
F_TSMatrix< Toperator* (const T &a, F_TMatrix< T > b)
 
 INST (template< typename T > class F_TMatrix friend F_TMatrix< T > operator+(const T &, const F_Matrix< T > &);) template< typename T > inline F_TMatrix< T > operator+(const T &a
 
 for (REGISTER T *p1=c.vec,*p2=b.vec;p1< c.endvec;p1++, p2++)*p1 = a - *p2
 
 INST (template< typename T > class F_TMatrix friend F_TMatrix< T > operator-(const T &, const F_Matrix< T > &);) template< typename T > inline F_TMatrix< T > operator-(const T &a
 
template<typename T >
F_TSMatrix< Toperator* (const T &a, const F_Matrix< T > &b)
 
 INST (template< typename T > class F_TSMatrix friend F_TMatrix< T > operator+(const T &, F_TSMatrix< T >);) template< typename T > inline F_TMatrix< T > operator+(const T &a
 
tm detach ()
 
return F_TMatrix< T > (tm)
 
 INST (template< typename T > class F_TSMatrix friend F_TMatrix< T > operator-(const T &, F_TSMatrix< T >);) template< typename T > inline F_TMatrix< T > operator-(const T &a
 
template<typename T >
F_TSMatrix< Toperator* (const T &f, F_TSMatrix< T > ts)
 
template<typename T >
STD__ ostream & operator<< (STD__ ostream &os, const F_Matrix< T > &m)
 
template<typename T >
STD__ ostream & operator<< (STD__ ostream &os, F_TMatrix< T > tm)
 
template<typename T >
STD__ ostream & operator<< (STD__ ostream &os, F_TSMatrix< T > ts)
 
template<typename T >
STD__ istream & operator>> (STD__ istream &in, F_Matrix< T > &m)
 
template<typename T >
F_TMatrix< Ttranspose (const F_TMatrix< T > &ftm)
 
template<typename T >
NAMESPACE_END NAMESPACE_CSTD double fabs (const TBCI__ F_TMatrix< T > &ftm)
 
template<typename T >
double fabs (const TBCI__ F_Matrix< T > &fm)
 
template<typename T >
double fabs (TBCI__ F_TSMatrix< T > &ftsm)
 

Variables

F_TMatrix< Tb { for (REGISTER T* ptr=b. vec ; ptr<b. endvec ; ptr++) *ptr = a + *ptr
 
return c
 
F_TSMatrix< Tts { F_TSMatrix<T> tm (ts)
 
tm fac = (T)1
 

Detailed Description

header file to implement classes TBCI::F_Matrix, TBCI::F_TMatrix, TBCI::F_TSMatrix.

Definition in file f_matrix.h.

Macro Definition Documentation

#define _COL   col

Definition at line 41 of file f_matrix.h.

#define _DIM   dim

Definition at line 39 of file f_matrix.h.

Referenced by BdMatrix< T >::operator TMatrix< T >().

#define _ENDVEC   endvec

Definition at line 38 of file f_matrix.h.

#define _FAC   fac

Definition at line 42 of file f_matrix.h.

#define _ROW   row

Definition at line 40 of file f_matrix.h.

#define _VEC   vec

Definition at line 37 of file f_matrix.h.

#define F_MSTDDEF_M (   op)
Value:
template <typename T> \
inline F_TMatrix<T> F_Matrix<T>::operator op (const F_Matrix<T>& a) const \
{ \
F_TMatrix<T> t (this->row, this->col); \
BCHK(this->dim != a.dim, MatErr, Operator op on diff size matrices, a.dim, t); \
for (REGISTER T *p1=t.vec, *p2=this->vec, *p3=a.vec; p2<this->endvec; ++p1, ++p2, ++p3) \
*p1 = *p2 op *p3; \
return t; \
}
#define REGISTER
Definition: basics.h:108
#define BCHK(cond, exc, txt, ind, rtval)
Definition: basics.h:575
for(REGISTER T *p1=c.vec,*p2=b.vec;p1< c.endvec;p1++, p2++)*p1
return
Definition: LM_fit.h:82
exception class
Definition: matrix.h:53
Temporary Base Class (non referable!) (acc.
Definition: bvector.h:50
#define T
Definition: bdmatlib.cc:20
return F_TMatrix< T >(tm)
const unsigned TMatrix< T > const Matrix< T > * a

Definition at line 1419 of file f_matrix.h.

#define F_MSTDDEF_T (   op)
Value:
template <typename T> \
inline F_TMatrix<T> F_Matrix<T>::operator op (const T& a) const \
{ \
F_TMatrix<T> t (this->row, this->col); \
for (REGISTER T *p1=t.vec, *p2=this->vec; p2<this->endvec; ++p1, ++p2) \
*p1 = *p2 op a; \
return t; \
}
#define REGISTER
Definition: basics.h:108
for(REGISTER T *p1=c.vec,*p2=b.vec;p1< c.endvec;p1++, p2++)*p1
return
Definition: LM_fit.h:82
Temporary Base Class (non referable!) (acc.
Definition: bvector.h:50
#define T
Definition: bdmatlib.cc:20
return F_TMatrix< T >(tm)
const unsigned TMatrix< T > const Matrix< T > * a

Definition at line 1395 of file f_matrix.h.

#define F_MSTDDEF_TM (   op)
Value:
template <typename T> \
{ \
BCHK(this->dim != a.dim, MatErr, Applying op on diff. size matrices, a.dim, a); \
for (REGISTER T *p1=a.vec, *p2=this->vec; p2<this->endvec; ++p1, ++p2) \
*p1 = *p2 op *p1; \
}
#define REGISTER
Definition: basics.h:108
#define BCHK(cond, exc, txt, ind, rtval)
Definition: basics.h:575
for(REGISTER T *p1=c.vec,*p2=b.vec;p1< c.endvec;p1++, p2++)*p1
return
Definition: LM_fit.h:82
exception class
Definition: matrix.h:53
Temporary Base Class (non referable!) (acc.
Definition: bvector.h:50
#define T
Definition: bdmatlib.cc:20
const unsigned TMatrix< T > const Matrix< T > * a

Definition at line 1434 of file f_matrix.h.

#define F_MSTDDEF_TS (   op)
Value:
template <typename T> \
{ \
BCHK(this->dim != ts.dim, MatErr, Applying op on diff. size matrices, ts.dim, (ts.destroy(),F_TMatrix<T> (*this)) ); \
F_TSMatrix<T> tm (ts); tm.detach (); \
for (REGISTER T *p1=tm.vec, *p2=this->vec, *p3=ts.vec; p2<this->endvec; ++p1, ++p2, ++p3) \
*p1 = *p2 op *p3 * ts.fac; \
tm.fac = (T)1; return F_TMatrix<T> (tm); \
}
#define REGISTER
Definition: basics.h:108
#define BCHK(cond, exc, txt, ind, rtval)
Definition: basics.h:575
Temporary object for scaled matrices.
Definition: cscmatrix.h:50
for(REGISTER T *p1=c.vec,*p2=b.vec;p1< c.endvec;p1++, p2++)*p1
F_TSMatrix< T > ts
Definition: f_matrix.h:1052
exception class
Definition: matrix.h:53
Temporary Base Class (non referable!) (acc.
Definition: bvector.h:50
#define T
Definition: bdmatlib.cc:20

Definition at line 1447 of file f_matrix.h.

#define F_STDDEF_TM (   op)
Value:
INST(template <typename T> class F_TMatrix friend F_TMatrix<T> operator op (const T&, const F_Matrix<T>&);) \
template <typename T> \
inline F_TMatrix<T> operator op (const T& a, const F_Matrix<T>& b) \
{ \
F_TMatrix<T> c (b._ROW, b._COL); \
for (REGISTER T *p1=c._VEC, *p2=b._VEC; p1<c._ENDVEC; p1++, p2++) \
*p1 = a op *p2; \
}
#define REGISTER
Definition: basics.h:108
return c
Definition: f_matrix.h:760
for(REGISTER T *p1=c.vec,*p2=b.vec;p1< c.endvec;p1++, p2++)*p1
return
Definition: LM_fit.h:82
F_TMatrix< T > b
Definition: f_matrix.h:736
#define INST(x)
Definition: basics.h:238
Temporary Base Class (non referable!) (acc.
Definition: bvector.h:50
#define T
Definition: bdmatlib.cc:20
return F_TMatrix< T >(tm)
const unsigned TMatrix< T > const Matrix< T > * a

Definition at line 749 of file f_matrix.h.

#define F_STDDEF_TMM (   op)
Value:
template <typename T> \
{ return this->operator op##= (a); }
Temporary Base Class (non referable!) (acc.
Definition: bvector.h:50
const unsigned TMatrix< T > const Matrix< T > * a

Definition at line 685 of file f_matrix.h.

#define F_STDDEF_TMT (   op)
Value:
template <typename T> \
inline F_TMatrix<T>& F_TMatrix<T>::operator op (const T& a) \
{ return this->operator op##= (a); }
Temporary Base Class (non referable!) (acc.
Definition: bvector.h:50
#define T
Definition: bdmatlib.cc:20
const unsigned TMatrix< T > const Matrix< T > * a

Definition at line 703 of file f_matrix.h.

#define F_STDDEF_TMTM (   op)
Value:
template <typename T> \
{ return this->operator op##= (F_Matrix<T>(a)); }
Temporary Base Class (non referable!) (acc.
Definition: bvector.h:50
const unsigned TMatrix< T > const Matrix< T > * a

Definition at line 694 of file f_matrix.h.

#define F_STDDEF_TSM (   op)
Value:
template <typename T> \
{ \
BCHK(row != m.row || col != m.col, MatErr, Op op on diff size Mats, m.row, F_TMatrix<T> (*this)); \
F_TSMatrix<T> ts (*this); ts.detach (); \
for (REGISTER T *p1 = ts.vec, *p2 = vec, *p3 = m.vec; p2 < endvec; p1++, p2++, p3++) \
*p1 = *p2 * fac op *p3; \
ts.fac = (T)1; return F_TMatrix<T> (ts); \
}
tm fac
Definition: f_matrix.h:1052
#define REGISTER
Definition: basics.h:108
#define BCHK(cond, exc, txt, ind, rtval)
Definition: basics.h:575
Temporary object for scaled matrices.
Definition: cscmatrix.h:50
for(REGISTER T *p1=c.vec,*p2=b.vec;p1< c.endvec;p1++, p2++)*p1
F_TSMatrix< T > ts
Definition: f_matrix.h:1052
exception class
Definition: matrix.h:53
Temporary Base Class (non referable!) (acc.
Definition: bvector.h:50
#define T
Definition: bdmatlib.cc:20

Definition at line 980 of file f_matrix.h.

#define F_STDDEF_TST (   op)
Value:
template <typename T> \
{ \
F_TSMatrix<T> ts (*this); ts.detach (); \
for (REGISTER T *p1 = ts.vec, *p2 = vec; p2 < endvec; p1++, p2++) \
*p1 = *p2 * fac op a; \
ts.fac = (T)1; return F_TMatrix<T> (ts); \
}
tm fac
Definition: f_matrix.h:1052
#define REGISTER
Definition: basics.h:108
Temporary object for scaled matrices.
Definition: cscmatrix.h:50
for(REGISTER T *p1=c.vec,*p2=b.vec;p1< c.endvec;p1++, p2++)*p1
F_TSMatrix< T > ts
Definition: f_matrix.h:1052
Temporary Base Class (non referable!) (acc.
Definition: bvector.h:50
#define T
Definition: bdmatlib.cc:20
const unsigned TMatrix< T > const Matrix< T > * a

Definition at line 1027 of file f_matrix.h.

#define F_STDDEF_TSTM (   op)
Value:
template <typename T> \
{ \
BCHK(row != tm.row || col != tm.col, MatErr, Op op on diff size Mats, tm.row, tm); \
for (REGISTER T *p1 = tm.vec, *p2 = vec; p2 < endvec; p1++, p2++) \
*p1 = *p2 * fac op *p1; \
destroy (); return tm; \
}
tm fac
Definition: f_matrix.h:1052
#define REGISTER
Definition: basics.h:108
#define BCHK(cond, exc, txt, ind, rtval)
Definition: basics.h:575
Temporary object for scaled matrices.
Definition: cscmatrix.h:50
for(REGISTER T *p1=c.vec,*p2=b.vec;p1< c.endvec;p1++, p2++)*p1
exception class
Definition: matrix.h:53
Temporary Base Class (non referable!) (acc.
Definition: bvector.h:50
#define T
Definition: bdmatlib.cc:20

Definition at line 995 of file f_matrix.h.

#define F_STDDEF_TSTS (   op)
Value:
template <typename T> \
{ \
BCHK(row != ts.row || col != ts.col, MatErr, Op op on diff size Mats, ts.row, F_TMatrix<T> (*this)); \
F_TSMatrix<T> tm; \
if (!mut && ts.mut) tm = ts; \
else { tm = *this; tm.detach (); } \
for (REGISTER T *p1 = tm.vec, *p2 = vec, *p3 = ts.vec; p2 < endvec; p1++, p2++, p3++) \
*p1 = *p2 * fac op *p3 * ts.fac; \
if (!mut && ts.mut) destroy (); else ts.destroy (); \
tm.fac = (T)1; return F_TMatrix<T> (tm); \
}
tm fac
Definition: f_matrix.h:1052
#define REGISTER
Definition: basics.h:108
#define BCHK(cond, exc, txt, ind, rtval)
Definition: basics.h:575
Temporary object for scaled matrices.
Definition: cscmatrix.h:50
for(REGISTER T *p1=c.vec,*p2=b.vec;p1< c.endvec;p1++, p2++)*p1
return
Definition: LM_fit.h:82
F_TSMatrix< T > ts
Definition: f_matrix.h:1052
if(value==0) return 1
exception class
Definition: matrix.h:53
Temporary Base Class (non referable!) (acc.
Definition: bvector.h:50
#define T
Definition: bdmatlib.cc:20

Definition at line 1009 of file f_matrix.h.

#define F_STDDEF_TTM (   op)
Value:
INST(template <typename T> class F_TMatrix friend F_TMatrix<T> operator op (const T&, F_TMatrix<T>);) \
template <typename T> \
inline F_TMatrix<T> operator op (const T& a, F_TMatrix<T> b) \
{ \
for (REGISTER T* ptr=b._VEC; ptr<b._ENDVEC; ptr++) \
*ptr = a op *ptr; \
}
#define REGISTER
Definition: basics.h:108
for(REGISTER T *p1=c.vec,*p2=b.vec;p1< c.endvec;p1++, p2++)*p1
return
Definition: LM_fit.h:82
F_TMatrix< T > b
Definition: f_matrix.h:736
#define INST(x)
Definition: basics.h:238
Temporary Base Class (non referable!) (acc.
Definition: bvector.h:50
#define T
Definition: bdmatlib.cc:20
const unsigned TMatrix< T > const Matrix< T > * a

Definition at line 726 of file f_matrix.h.

#define F_STDDEF_TTS (   op)
Value:
INST(template <typename T> class F_TSMatrix friend F_TMatrix<T> operator op (const T&, F_TSMatrix<T>);) \
template <typename T> \
inline F_TMatrix<T> operator op (const T& a, F_TSMatrix<T> ts) \
{ \
F_TSMatrix<T> tm (ts); tm.detach (); \
for (REGISTER T *p1 = tm._VEC, *p2 = ts._VEC; p1 < tm._ENDVEC; p1++, p2++) \
*p1 = a op *p2 * ts._FAC; \
tm._FAC = (T)1; return F_TMatrix<T> (tm); \
}
#define REGISTER
Definition: basics.h:108
Temporary object for scaled matrices.
Definition: cscmatrix.h:50
for(REGISTER T *p1=c.vec,*p2=b.vec;p1< c.endvec;p1++, p2++)*p1
F_TSMatrix< T > ts
Definition: f_matrix.h:1052
#define INST(x)
Definition: basics.h:238
Temporary Base Class (non referable!) (acc.
Definition: bvector.h:50
#define T
Definition: bdmatlib.cc:20
const unsigned TMatrix< T > const Matrix< T > * a

Definition at line 1041 of file f_matrix.h.

#define F_TMFORALL_M (   op)
Value:
template <typename T> \
{ \
BCHK(row != a.row, MatErr, number of rows differ in op, a.row, *this ); \
BCHK(col != a.col, MatErr, number of cols differ in op, a.col, *this ); \
for (REGISTER T *p1 = vec, *p2 = a.vec; p1 < endvec; p1++, p2++) *p1 op *p2; \
return *this; \
}
#define REGISTER
Definition: basics.h:108
#define BCHK(cond, exc, txt, ind, rtval)
Definition: basics.h:575
for(REGISTER T *p1=c.vec,*p2=b.vec;p1< c.endvec;p1++, p2++)*p1
return
Definition: LM_fit.h:82
exception class
Definition: matrix.h:53
Temporary Base Class (non referable!) (acc.
Definition: bvector.h:50
#define T
Definition: bdmatlib.cc:20
const unsigned TMatrix< T > const Matrix< T > * a

Definition at line 616 of file f_matrix.h.

#define F_TMFORALL_T (   op)
Value:
template <typename T> \
inline F_TMatrix<T>& F_TMatrix<T>::operator op (const T& a) \
{ \
for (REGISTER T* ptr = vec; ptr < endvec; ptr++) *ptr op a; \
return *this; \
}
#define REGISTER
Definition: basics.h:108
for(REGISTER T *p1=c.vec,*p2=b.vec;p1< c.endvec;p1++, p2++)*p1
return
Definition: LM_fit.h:82
Temporary Base Class (non referable!) (acc.
Definition: bvector.h:50
#define T
Definition: bdmatlib.cc:20
const unsigned TMatrix< T > const Matrix< T > * a

Definition at line 658 of file f_matrix.h.

#define F_TMFORALL_TM (   op)
Value:
template <typename T> \
{ \
return this->operator op (F_Matrix<T>(a)); \
}
return
Definition: LM_fit.h:82
Temporary Base Class (non referable!) (acc.
Definition: bvector.h:50
const unsigned TMatrix< T > const Matrix< T > * a

Definition at line 631 of file f_matrix.h.

#define F_TMFORALL_TS (   op)
Value:
template <typename T> \
{ \
BCHK(row != ts.row, MatErr, number of rows differ in op, ts.row, (ts.destroy(),*this) ); \
BCHK(col != ts.col, MatErr, number of cols differ in op, ts.col, (ts.destroy(),*this) ); \
for (REGISTER T *p1 = vec, *p2 = ts.vec; p1 < endvec; p1++, p2++) \
*p1 op##= *p2 * ts.fac; \
ts.destroy (); return *this; \
}
#define REGISTER
Definition: basics.h:108
#define BCHK(cond, exc, txt, ind, rtval)
Definition: basics.h:575
Temporary object for scaled matrices.
Definition: cscmatrix.h:50
for(REGISTER T *p1=c.vec,*p2=b.vec;p1< c.endvec;p1++, p2++)*p1
F_TSMatrix< T > ts
Definition: f_matrix.h:1052
exception class
Definition: matrix.h:53
Temporary Base Class (non referable!) (acc.
Definition: bvector.h:50
#define T
Definition: bdmatlib.cc:20

Definition at line 642 of file f_matrix.h.

#define LAPACK_INLINE

Definition at line 460 of file f_matrix.h.

Function Documentation

tm detach ( )
return F_TMatrix< T > ( tm  )
template<typename T >
NAMESPACE_END NAMESPACE_CSTD double fabs ( const TBCI__ F_TMatrix< T > &  ftm)
inline

Definition at line 1714 of file f_matrix.h.

template<typename T >
double fabs ( const TBCI__ F_Matrix< T > &  fm)
inline

Definition at line 1719 of file f_matrix.h.

template<typename T >
double fabs ( TBCI__ F_TSMatrix< T > &  ftsm)
inline

Definition at line 1724 of file f_matrix.h.

for ( REGISTER T p1 = c.vec) = a - *p2
INST ( template< typename T > class F_TMatrix friend F_TMatrix< T > operator+(const T &, F_TMatrix< T >);  ) const
INST ( template< typename T > class F_TMatrix friend F_TMatrix< T > operator-(const T &, F_TMatrix< T >);  ) const
INST ( template< typename T > class F_TMatrix friend F_TMatrix< T > operator+(const T &, const F_Matrix< T > &);  ) const
INST ( template< typename T > class F_TMatrix friend F_TMatrix< T > operator-(const T &, const F_Matrix< T > &);  ) const
INST ( template< typename T > class F_TSMatrix friend F_TMatrix< T > operator+(const T &, F_TSMatrix< T >);  ) const
INST ( template< typename T > class F_TSMatrix friend F_TMatrix< T > operator-(const T &, F_TSMatrix< T >);  ) const
template<typename T >
F_TSMatrix<T> operator* ( const T a,
F_TMatrix< T b 
)
inline

Definition at line 743 of file f_matrix.h.

References a, and b.

template<typename T >
F_TSMatrix<T> operator* ( const T a,
const F_Matrix< T > &  b 
)
inline

Definition at line 768 of file f_matrix.h.

References a, and b.

template<typename T >
F_TSMatrix<T> operator* ( const T f,
F_TSMatrix< T ts 
)
inline

Definition at line 1156 of file f_matrix.h.

References ts.

template<typename T >
STD__ ostream& operator<< ( STD__ ostream &  os,
const F_Matrix< T > &  m 
)

Definition at line 1351 of file f_matrix.h.

References c.

template<typename T >
STD__ ostream& operator<< ( STD__ ostream &  os,
F_TMatrix< T tm 
)

Definition at line 1363 of file f_matrix.h.

template<typename T >
STD__ ostream& operator<< ( STD__ ostream &  os,
F_TSMatrix< T ts 
)

Definition at line 1372 of file f_matrix.h.

References ts.

template<typename T >
STD__ istream& operator>> ( STD__ istream &  in,
F_Matrix< T > &  m 
)

Definition at line 1379 of file f_matrix.h.

References F_TMatrix< T >::col, i, F_TMatrix< T >::row, and F_Matrix< T >::set_col().

template<typename T >
F_TMatrix<T> transpose ( const F_TMatrix< T > &  ftm)
inline

Definition at line 1667 of file f_matrix.h.

References F_TMatrix< T >::transposed_copy().

Variable Documentation

const F_Matrix< T > & b { for (REGISTER T* ptr=b. vec ; ptr<b. endvec ; ptr++) *ptr = a + *ptr
return c

Definition at line 760 of file f_matrix.h.

Referenced by CHEBY(), BVector< T >::concat(), F_TSMatrix< T >::detach(), Matrix< T >::div_row(), Matrix< T >::div_rows(), do_fill_mat(), ediv(), erfc3(), expm(), F_BandMatrix< T >::F_BandMatrix(), F_Matrix< T >::F_Matrix(), CSCMatrix< T >::fill(), F_BandMatrix< T >::find_sub(), free_threads(), F_TMatrix< T >::get(), TMatrix< T >::get(), F_TSMatrix< T >::get(), F_Matrix< T >::get(), BdMatrix< T >::get_col(), TMatrix< T >::getcref(), init_threads(), lu_solve_expert(), CSCMatrix< T >::mult1(), Matrix< T >::mult_row(), Matrix< T >::mult_rows(), CSCMatrix< T >::operator F_TMatrix< T >(), F_TMatrix< T >::operator TMatrix< T >(), F_TSMatrix< T >::operator TMatrix< T >(), F_Matrix< T >::operator TMatrix< T >(), CTensor< T >::operator()(), F_TMatrix< T >::operator()(), TMatrix< T >::operator()(), F_TSMatrix< T >::operator()(), TSMatrix< T >::operator()(), F_Matrix< T >::operator()(), F_TSMatrix< T >::operator*(), TSMatrix< T >::operator*(), F_Matrix< T >::operator*(), Matrix< T >::operator*(), CSCMatrix< T >::operator+(), operator+(), CSCMatrix< T >::operator-(), operator-(), cplx< T >::operator<(), operator<<(), cplx< T >::operator<=(), QMR(), BVector< T >::resize(), F_TMatrix< T >::resize(), TMatrix< T >::resize(), TMatrix< T >::set(), TMatrix< T >::setval(), sv_decomp(), F_TMatrix< T >::transpose(), TMatrix< T >::transpose(), F_BandMatrix< T >::transposed_copy(), CRMatrix< T >::transposed_copy(), CSCMatrix< T >::transposed_copy(), F_TMatrix< T >::transposed_copy(), and TMatrix< T >::transposed_copy().

tm fac = (T)1
F_TSMatrix< T > ts { F_TSMatrix<T> tm (ts)