15 template <
typename ordinal_type,
typename value_type>
25 template <
typename ordinal_type,
typename value_type>
31 template <
typename ordinal_type,
typename value_type>
37 return (n * facto(n-1));
42 template <
typename ordinal_type,
typename value_type>
48 return (facto(n+m)/(facto(n)*facto(m)));
51 template <
typename ordinal_type,
typename value_type>
77 Dr(i,0)=r2(i,0)/D(i,i);
88 BinvD(
j,i)=B(
j,i)/D(i,i);
110 Result(i,0)=(*w)(i,0);
116 Result(i,0)=r2(-s+i,0)/D(-s+i, -s+i);
virtual ~BlockPreconditioner()
Destructor.
int multiply(ETransp transa, ETransp transb, ScalarType alpha, const SerialDenseMatrix< OrdinalType, ScalarType > &A, const SerialDenseMatrix< OrdinalType, ScalarType > &B, ScalarType beta)
ordinal_type siz(ordinal_type n, ordinal_type m) const
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
BlockPreconditioner(const Teuchos::SerialDenseMatrix< ordinal_type, value_type > &K, const ordinal_type p, const ordinal_type m)
Constructor.
void factorWithEquilibration(bool flag)
int setVectors(const RCP< SerialDenseMatrix< OrdinalType, ScalarType > > &X, const RCP< SerialDenseMatrix< OrdinalType, ScalarType > > &B)
ordinal_type facto(ordinal_type n) const
#define TEUCHOS_ASSERT(assertion_test)
int setMatrix(const RCP< SerialDenseMatrix< OrdinalType, ScalarType > > &A)
virtual ordinal_type ApplyInverse(const Teuchos::SerialDenseMatrix< ordinal_type, value_type > &Input, Teuchos::SerialDenseMatrix< ordinal_type, value_type > &Result, ordinal_type m) const
Returns the result of a Operator inverse applied to a Teuchos::SerialDenseMatrix Input in Result...