linear_algebra updated to 0.7.0/testing

This commit is contained in:
Mateusz Pusz
2020-05-17 12:04:57 +02:00
parent 6f48085ea3
commit 80d67163c8
4 changed files with 9 additions and 9 deletions

View File

@@ -89,7 +89,7 @@ class UnitsConan(ConanFile):
self.build_requires("Catch2/2.11.0@catchorg/stable")
# TODO update doxygen to the latest version when available
self.build_requires("doxygen_installer/1.8.17@bincrafters/stable")
self.build_requires("linear_algebra/0.6.0@public-conan/stable")
self.build_requires("linear_algebra/0.7.0@public-conan/testing")
def build(self):
cmake = self._configure_cmake()

View File

@@ -1,7 +1,7 @@
# Release notes
- **0.6.0 WIP**
- linear_algebra updated to 0.7.0/testing
- **0.5.0 May 17, 2020**
- Major refactoring and rewrite of the library

View File

@@ -14,7 +14,7 @@ enough to be used with other Linear Algebra libraries existing on the market.
or `Conan <https://bintray.com/twonington/public-conan/linear_algebra%3Apublic-conan>`_.
Also, to simplify the examples all of them assume::
using namespace std::experimental::math;
using namespace std::math;
Linear Algebra of Quantities

View File

@@ -30,10 +30,10 @@
namespace {
template<class ET, class OT>
std::ostream& operator<<(std::ostream& os, const std::experimental::math::vector<ET, OT>& v)
std::ostream& operator<<(std::ostream& os, const std::math::vector<ET, OT>& v)
{
os << "|";
for (size_t i = 0; i < v.size(); ++i) {
for (auto i = 0; i < v.size(); ++i) {
os << fmt::format(" {:>9}", v(i));
}
os << " |";
@@ -41,11 +41,11 @@ std::ostream& operator<<(std::ostream& os, const std::experimental::math::vector
}
template<class ET, class OT>
std::ostream& operator<<(std::ostream& os, const std::experimental::math::matrix<ET, OT>& v)
std::ostream& operator<<(std::ostream& os, const std::math::matrix<ET, OT>& v)
{
for (size_t i = 0; i < v.rows(); ++i) {
for (auto i = 0; i < v.rows(); ++i) {
os << "|";
for (size_t j = 0; j < v.columns(); ++j) {
for (auto j = 0; j < v.columns(); ++j) {
os << fmt::format(" {:>9}", v(i, j));
}
os << (i != v.rows() - 1 ? " |\n" : " |");
@@ -54,7 +54,7 @@ std::ostream& operator<<(std::ostream& os, const std::experimental::math::matrix
}
using namespace std::experimental::math;
using namespace std::math;
using namespace units::physical;
using namespace units::physical::si::literals;