MCPcopy Create free account
hub / github.com/Geode-solutions/OpenGeode / transpose

Method transpose

src/geode/geometry/square_matrix.cpp:178–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176
177 template < index_t dimension >
178 SquareMatrix< dimension > SquareMatrix< dimension >::transpose() const
179 {
180 std::array< Vector< dimension >, dimension > matrix_rows;
181 for( const auto d1 : LRange{ dimension } )
182 {
183 for( const auto d2 : LRange{ dimension } )
184 {
185 matrix_rows[d1].set_value( d2, value( d2, d1 ) );
186 }
187 }
188 return SquareMatrix< dimension >{ std::move( matrix_rows ) };
189 }
190
191 template < index_t dimension >
192 SquareMatrix< dimension > SquareMatrix< dimension >::inverse() const

Callers 2

test_matrix_2x2Function · 0.80
test_matrix_3x3Function · 0.80

Calls 1

set_valueMethod · 0.45

Tested by 2

test_matrix_2x2Function · 0.64
test_matrix_3x3Function · 0.64