[itpp] Fix runtime errors (#42881)

This commit is contained in:
jim wang 2024-12-23 15:55:45 +00:00 committed by GitHub
parent 1e73628cc5
commit 989b8d34f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 23 additions and 3 deletions

View File

@ -0,0 +1,14 @@
diff --git a/itpp/base/mat.cpp b/itpp/base/mat.cpp
index 9f2a20e..11b0a58 100644
--- a/itpp/base/mat.cpp
+++ b/itpp/base/mat.cpp
@@ -173,8 +173,7 @@ cmat operator*(const cmat &m1, const cmat &m2)
template<>
mat operator*(const mat &m1, const mat &m2)
{
- it_assert_debug(m1.rows() == m2.cols(),
- "Mat<>::operator*(): Wrong sizes");
+ it_assert_debug(m1.cols() == m2.rows(), "cmat::operator*(): Wrong sizes");
mat r(m1.rows(), m2.cols());
double *tr = r._data();
const double *t1;

View File

@ -11,6 +11,7 @@ vcpkg_from_sourceforge(
fix-uwp.patch
fix-linux.patch
rename-version.patch
fix-build.patch
)
file(RENAME "${SOURCE_PATH}/VERSION" "${SOURCE_PATH}/VERSION.txt")
@ -33,6 +34,6 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_copy_pdbs()
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
vcpkg_fixup_pkgconfig()

View File

@ -1,7 +1,7 @@
{
"name": "itpp",
"version-semver": "4.3.1",
"port-version": 11,
"port-version": 12,
"description": "IT++ is a C++ library of mathematical, signal processing and communication classes and functions. Its main use is in simulation of communication systems and for performing research in the area of communications.",
"homepage": "http://itpp.sourceforge.net",
"dependencies": [

View File

@ -3798,7 +3798,7 @@
},
"itpp": {
"baseline": "4.3.1",
"port-version": 11
"port-version": 12
},
"itsy-bitsy": {
"baseline": "2022-08-02",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "90c2b246877a97ce4ee4b4f5b7aa55714ac715fd",
"version-semver": "4.3.1",
"port-version": 12
},
{
"git-tree": "deb799807d61211af72ccc732eea3950b2d52b4c",
"version-semver": "4.3.1",