|
Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
|
Go to the documentation of this file.
96 Array<int> oneDArray = tuple<int>(1,2,3,4,5,6);
107 std::string badStringRep =
"4x4:{1.0,1.0}";
122 std::stringstream ss;
125 std::istringstream instream(ss.str());
126 instream >> readArray;
149 #ifdef HAVE_TEUCHOS_ARRAY_BOUNDSCHECK
163 #ifdef HAVE_TEUCHOS_ARRAY_BOUNDSCHECK
bool isSymmetrical() const
A simple flag indicating whether or not this TwoDArray should be interpurted as symmetrical.
A thin wrapper around the Array class which causes it to be interpreted as a 2D Array.
size_type getNumRows() const
returns the number of rows in the TwoDArray.
void clear()
delets all the entries from the TwoDArray
#define TEST_THROW(code, ExceptType)
Assert that the statement 'code' throws the exception 'ExceptType' (otherwise the test fails).
TEUCHOS_UNIT_TEST(ConstNonconstObjectContainer, create)
const Array< T > & getDataArray() const
Returns the 1D array that is backing this TwoDArray.
void setSymmetrical(bool symmetrical)
Sets whether or not the the TwoDArray should be interpurted as symetric.
TwoDArray< int > getSimpleTestTwoDArray()
void resizeCols(size_type numberOfCols)
Changes the number of rows in the matrix.
static std::string toString(const TwoDArray< T > array)
Converts a given TwoDArray to a valid string representation.
#define TEST_EQUALITY_CONST(v1, v2)
Assert the equality of v1 and constant v2.
void resizeRows(size_type numberOfRows)
Changes the number of rows in the matrix.
size_type getNumCols() const
returns the number of columns in the TwoDArray.
static TwoDArray< T > fromString(const std::string &string)
Converts a valid string to it's corresponding TwoDArray.
Range error exception class.
#define TEST_COMPARE_ARRAYS(a1, a2)
Assert that a1.size()==a2.size() and a[i]==b[i], i=0....
A thin wrapper around the Teuchos Array class that allows for 2 dimensional arrays.
TEST_EQUALITY(rcp_dynamic_cast< const EnhancedNumberValidator< double > >(castedDep1->getValuesAndValidators().find("val1") ->second, true) ->getMax(), double1Vali->getMax())
TEST_ASSERT(castedDep1->getValuesAndValidators().size()==2)