38 #include <lifev/core/array/RNM.hpp> 55 void MatMul ( KNM_<R>& ab, KNM_<R>& a, KNM_<R>& b )
60 K_assert ( a.shapej.n == a.shapei.n );
61 K_assert ( a.shapei.n == ab.shapei.n );
62 K_assert ( b.shapej.n == ab.shapej.n );
66 for (
int i = 1; i < N; i++, ++ai )
69 for (
int j = 1; j < M; j++, ++bj )
71 ab ( i, j ) = ( ai , bj ) ;
78 inline std::ostream& operator<< ( std::ostream& f,
const ShapeOfArray& s )
87 f <<
" n: " << std::setw ( 3 ) << s.next ;
94 std::ostream& operator<< ( std::ostream& f,
const KN_<
const_R>& v )
97 f << v.N() <<
"\t:\t" ;
98 for (
int i = 0; i < v.N(); i++ )
100 std::cout << std::setw ( 3 ) << v[ i ] << ( ( i % 10 ) == 9 ?
"\n\t" :
"\t" );
106 std::ostream& operator<< ( std::ostream& f,
const KNM_<
const_R>& v )
112 f << v.N() <<
'x' << v.M() <<
"\t:\n\t" ;
113 for (
int i = 0; i < v.N(); i++ )
115 for (
int j = 0; j < v.M(); j++ )
117 std::cout <<
" " << std::setw ( 3 ) << v ( i, j );
126 std::ostream& operator<< ( std::ostream& f,
const KNMK_<
const_R>& v )
133 f << v.N() <<
'x' << v.M() <<
'x' << v.K() <<
"\t:\n\t" ;
134 for (
int i = 0; i < v.shapei.n; i++ )
136 for (
int j = 0; j < v.shapej.n; j++ )
138 for (
int k = 0; k < v.shapek.n; k++ )
140 std::cout <<
" " << std::setw ( 3 ) << v ( i, j, k );
157 for (
int i = 0; i <
n; i++, l +=
step, r += u.step )
169 for (
int i = 1; i <
n; i++ )
179 for (
int i = 1; i <
n; i++ )
190 for (
int i = 1; i <
n; i++ )
197 KN_<R>& KN_<R>::
map ( R ( *f ) ( R ) )
199 for (
int i = 0; i <
n; i++ )
210 #include <lifev/core/array/RNMOperator.hpp> 211 #include <lifev/core/array/RNMOperatorConstant.hpp> 213 #include <lifev/core/array/RNMOperator.hpp> 214 #include <lifev/core/array/RNMOperatorConstant.hpp> 216 #include <lifev/core/array/RNMOperator.hpp> 217 #include <lifev/core/array/RNMOperatorConstant.hpp> 219 #include <lifev/core/array/RNMOperatorConstant.hpp> 221 #include <lifev/core/array/RNMOperatorConstant.hpp>
void updateInverseJacobian(const UInt &iQuadPt)
R operator,(const KN_< R > &v) const
void MatMul(KNM_< R > &ab, KNM_< R > &a, KNM_< R > &b)