/usr/include/trilinos/DenseLinAlgPack_DVectorInFunc.hpp is in libtrilinos-dev 10.4.0.dfsg-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | // @HEADER
// ***********************************************************************
//
// Moocho: Multi-functional Object-Oriented arCHitecture for Optimization
// Copyright (2003) Sandia Corporation
//
// Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
// license for use of this work by or on behalf of the U.S. Government.
//
// This library is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
// USA
// Questions? Contact Roscoe A. Bartlett (rabartl@sandia.gov)
//
// ***********************************************************************
// @HEADER
#ifndef VECTOR_IN_FUNC_H
#define VECTOR_IN_FUNC_H
#include "DenseLinAlgPack_IOBasic.hpp"
namespace DenseLinAlgPack {
/* * @name DVector/DVectorSlice input stream functions.
*
* These are functions that are used to read a DVector
* or DVectorSlice object from a formated input stream.
*
* The input format is diferent depending on the on whether the
* bit #LinAlgPackIO::ignore_dim_bit# is set. If #exta_flags & LinAlgPackIO::ignore_dim_bit != 0#
* then the input format is:
*
* Case 1\\
* #n#\\
* #v(1) v(2) v(3) ... v(n)#\\
*
* If #exta_flags & LinAlgPackIO::ignore_dim_bit == 0# then the input format is:
*
* Case 2\\
* #v(1) v(2) v(3) ... v(v.size())#\\
*
* The numbers of the input must be seperated by white space and be valid
* C numeric constants. For example, the input format for the vector {1.1, 2.2, 3.3}
* for case 1 is:
*
* #3#\\
* #1.1 2.2 3.3#\\
*
* And for case 2 is:
*
* #1.1 2.2 3.3#\\
*
* It is permisible for the dimension #n# in case 1 to be 0. In this case there will be
* no elements. So to input an empty vector you would use:
*
* #0#\\
*
* If any of the input operations fails then a LinAlgPackIO::InputException exception
* is thrown. In other words if #is.fail()# or #is.eof()# is true
* before all of the elements have been read in then the exception is thrown.
* Also if the stream becomes corrupted (#is.bad() == true#) then a #std::ios_base::failure#
* exception is thrown.
*/
// @{
/** \brief . */
/* * DVector input stream function.
*
* Inputs a DVector object from an input stream. If #exta_flags & LinAlgPackIO::ignore_dim_bit != 0#
* then #v# is resized to #n# given in the file. If #exta_flags & LinAlgPackIO::ignore_dim_bit == 0#
* then the number of elements read in depends on the current size of #v#.
*
*/
std::istream& input(std::istream& is, DVector* v, LinAlgPackIO::fmtflags extra_flags);
/** \brief . */
/* * DVectorSlice input stream function.
*
* Inputs a DVectorSlice object from an input stream. If #exta_flags & LinAlgPackIO::ignore_dim_bit != 0#
* then the size (!= 0) of #vs# is compared to the #n# given in the file and if they are not equal
* then a #LinAlgPackIO::InputException# is thrown. If #vs# is unsized then it is resized to #n#.
* If #exta_flags & LinAlgPackIO::ignore_dim_bit == 0# then the number of elements read in depends
* on the current size of #vs#.
*/
std::istream& input(std::istream& is, DVectorSlice* vs, LinAlgPackIO::fmtflags extra_flags);
// @}
} // end namespace DenseLinAlgPack
#endif // VECTOR_IN_FUNC_H
|