forked from mpusz/mp-units
linear_algebra updated to 0.7.0/testing
This commit is contained in:
@@ -89,7 +89,7 @@ class UnitsConan(ConanFile):
|
|||||||
self.build_requires("Catch2/2.11.0@catchorg/stable")
|
self.build_requires("Catch2/2.11.0@catchorg/stable")
|
||||||
# TODO update doxygen to the latest version when available
|
# TODO update doxygen to the latest version when available
|
||||||
self.build_requires("doxygen_installer/1.8.17@bincrafters/stable")
|
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):
|
def build(self):
|
||||||
cmake = self._configure_cmake()
|
cmake = self._configure_cmake()
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
# Release notes
|
# Release notes
|
||||||
|
|
||||||
- **0.6.0 WIP**
|
- **0.6.0 WIP**
|
||||||
|
- linear_algebra updated to 0.7.0/testing
|
||||||
|
|
||||||
- **0.5.0 May 17, 2020**
|
- **0.5.0 May 17, 2020**
|
||||||
- Major refactoring and rewrite of the library
|
- Major refactoring and rewrite of the library
|
||||||
|
@@ -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>`_.
|
or `Conan <https://bintray.com/twonington/public-conan/linear_algebra%3Apublic-conan>`_.
|
||||||
Also, to simplify the examples all of them assume::
|
Also, to simplify the examples all of them assume::
|
||||||
|
|
||||||
using namespace std::experimental::math;
|
using namespace std::math;
|
||||||
|
|
||||||
|
|
||||||
Linear Algebra of Quantities
|
Linear Algebra of Quantities
|
||||||
|
@@ -30,10 +30,10 @@
|
|||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
template<class ET, class OT>
|
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 << "|";
|
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 << fmt::format(" {:>9}", v(i));
|
||||||
}
|
}
|
||||||
os << " |";
|
os << " |";
|
||||||
@@ -41,11 +41,11 @@ std::ostream& operator<<(std::ostream& os, const std::experimental::math::vector
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<class ET, class OT>
|
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 << "|";
|
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 << fmt::format(" {:>9}", v(i, j));
|
||||||
}
|
}
|
||||||
os << (i != v.rows() - 1 ? " |\n" : " |");
|
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;
|
||||||
using namespace units::physical::si::literals;
|
using namespace units::physical::si::literals;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user