86 Array<int> oneDArray = tuple<int>(1,2,3,4,5,6);
97 std::string badStringRep =
"4x4:{1.0,1.0}";
112 std::stringstream ss;
115 std::istringstream instream(ss.str());
116 instream >> readArray;
139 #ifdef HAVE_TEUCHOS_ARRAY_BOUNDSCHECK 153 #ifdef HAVE_TEUCHOS_ARRAY_BOUNDSCHECK A thin wrapper around the Teuchos Array class that allows for 2 dimensional arrays.
bool isSymmetrical() const
A simple flag indicating whether or not this TwoDArray should be interpurted as symmetrical.
void setSymmetrical(bool symmetrical)
Sets whether or not the the TwoDArray should be interpurted as symetric.
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)...
size_type getNumRows() const
returns the number of rows in the TwoDArray.
const Array< T > & getDataArray() const
Returns the 1D array that is backing this TwoDArray.
static std::string toString(const TwoDArray< T > array)
Converts a given TwoDArray to a valid string representation.
TEUCHOS_UNIT_TEST(ConstNonconstObjectContainer, create)
A thin wrapper around the Array class which causes it to be interpurted as a 2D Array.
size_type getNumCols() const
returns the number of columns in the TwoDArray.
TwoDArray< int > getSimpleTestTwoDArray()
#define TEST_EQUALITY_CONST(v1, v2)
Assert the equality of v1 and constant v2.
void resizeCols(size_type numberOfCols)
Changes the number of rows in the matrix.
void resizeRows(size_type numberOfRows)
Changes the number of rows in the matrix.
#define TEST_COMPARE_ARRAYS(a1, a2)
Assert that a1.size()==a2.size() and a[i]==b[i], i=0....
TEST_ASSERT(castedDep1->getValuesAndValidators().size()==2)
TEST_EQUALITY(rcp_dynamic_cast< const EnhancedNumberValidator< double > >(castedDep1->getValuesAndValidators().find("val1") ->second, true) ->getMax(), double1Vali->getMax())
Range error exception class.
static TwoDArray< T > fromString(const std::string &string)
Converts a valid string to it's corresponding TwoDArray.