Commit 5bede006 authored by schurade's avatar schurade
Browse files

[Merge] with ca6eecfd7b0afdaf6cfd39431924bab5fe9ed474

parents c9664d69 bd3797a5
......@@ -60,16 +60,16 @@ public:
{
switch( m_order )
{
case 0 : // scalar
case 0 : // scalar
assert( m_dimension == 1 && "but m_order was 0" );
return rawSize();
case 1 : // vector
case 1 : // vector
assert( rawSize() % m_dimension == 0 );
return rawSize() / m_dimension;
case 2 : // matrix
case 2 : // matrix
assert( rawSize() % ( m_dimension * m_dimension ) == 0 );
return rawSize() / ( m_dimension * m_dimension );
default : // other
default : // other
assert( 1 == 0 && "Unsupported tensor order" );
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment