49 template <
typename ordinal_type,
typename value_type>
59 template <
typename ordinal_type,
typename value_type>
65 template <
typename ordinal_type,
typename value_type>
71 return (n * facto(n-1));
76 template <
typename ordinal_type,
typename value_type>
82 return (facto(n+m)/(facto(n)*facto(m)));
85 template <
typename ordinal_type,
typename value_type>
111 Dr(i,0)=r2(i,0)/D(i,i);
122 BinvD(
j,i)=B(
j,i)/D(i,i);
144 Result(i,0)=(*w)(i,0);
150 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...