1 // Copyright (c) 2017-2021, Lawrence Livermore National Security, LLC and 2 // other Axom Project Developers. See the top-level COPYRIGHT file for details. 3 // 4 // SPDX-License-Identifier: (BSD-3-Clause) 5 6 #include "axom/klee/tests/KleeTestUtils.hpp" 7 8 namespace axom 9 { 10 namespace klee 11 { 12 namespace test 13 { affine(const std::array<std::array<double,4>,3> & values)14numerics::Matrix<double> affine(const std::array<std::array<double, 4>, 3> &values) 15 { 16 numerics::Matrix<double> m(4, 4); 17 m(3, 3) = 1; 18 for(int i = 0; i < 3; ++i) 19 { 20 for(int j = 0; j < 4; ++j) 21 { 22 m(i, j) = values[i][j]; 23 } 24 } 25 return m; 26 } 27 28 } // namespace test 29 } // namespace klee 30 } // namespace axom 31