46 template <
class Array2D>
55 typedef typename Array2D::element_type
T;
65 const Array2D &
array()
const {
return A_; }
71 #ifdef TNT_BOUNDS_CHECK
72 BIASASSERT(
A_.lbound() <= i);
73 BIASASSERT( i<=
A_.lbound()+1);
86 inline const typename Array2D::element_type &
operator()(
89 #ifdef TNT_BOUNDS_CHECK
91 BIASASSERT(i<=
A_.num_cols() +
lbound() - 1);
93 BIASASSERT(j<=
A_.num_rows() +
lbound() - 1);
102 template <
class Matrix>
108 template <
class Matrix,
class T>
116 BIASASSERT(B.
dim() == N);
127 tmp += A(i,j) * B(j);
134 template <
class Matrix,
class T>
141 template <
class Matrix>
142 std::ostream& operator<<(std::ostream &s, const Transpose_View<Matrix> &A)
151 s << M <<
" " << N << endl;
const Array2D & array() const
Subscript num_cols() const
TNT_SUBSCRIPT_TYPE Subscript
Transpose_View< Matrix > Transpose_view(const Matrix &A)
const Array2D::element_type & operator()(Subscript i, Subscript j) const
Matrix< T > matmult(const Matrix< T > &A, const Matrix< T > &B)
Subscript dim(Subscript i) const
Transpose_View(const Transpose_View< Array2D > &A)
Transpose_View(const Array2D &A)
Fortran_Matrix< T > operator*(const Fortran_Matrix< T > &A, const Fortran_Matrix< T > &B)
const T & const_reference
Subscript num_rows() const