59 "Input operation of matrix dimension failed. Check that the constant n "
60 "is a valid integer." );
62 throw std::ios_base::failure(
"DenseLinAlgPack::input() {DMatrix}: "
63 "Input operation failed because the stream became currupted." );
67 return input_gms(is,&gms,
"DenseLinAlgPack::input() {DMatrix}");
76 "Input operation of matrix dimension failed. Check that the constant n "
77 " is a valid integer.");
79 throw std::ios_base::failure(
"DenseLinAlgPack::input() {DMatrixSlice}: "
80 "Input operation failed because the stream became currupted." );
83 return input_gms( is, gms,
"DenseLinAlgPack::input() {DMatrixSlice}" );
101 if(!gms->
rows())
return is;
103 ios_base::iostate old_state = is.exceptions();
104 is.exceptions(ios_base::badbit | ios_base::failbit | ios_base::eofbit);
115 is.exceptions(old_state);
118 is.exceptions(old_state);
Teuchos::Ordinal size_type
Typedef for the size type of elements that are used by the library.
AbstractLinAlgPack::size_type size_type
VectorSliceTmpl< value_type > DVectorSlice
void assert_gms_lhs(const DMatrixSlice &gms_lhs, size_type rows, size_type cols, BLAS_Cpp::Transp trans_rhs=BLAS_Cpp::no_trans)
std::ios_base::fmtflags fmtflags
void resize(size_type rows, size_type cols, value_type val=value_type())
Resize matrix to a (rows x cols) matrix and initializes any added elements by val.
DenseLinAlgPack::VectorSliceTmpl< value_type > DVectorSlice
size_type rows() const
Return the number of rows.
std::istream & input(std::istream &is, DMatrix *gm, LinAlgPackIO::fmtflags extra_flags)
DVectorSlice row(size_type i)
Return DVectorSlice object representing the ith row (1-based; 1,2,..,#this->rows()#, or throw std::out_of_range)