This commit is contained in:
2020-09-15 15:39:17 +03:00
parent 4f731d72a6
commit f9c1dbc661
4 changed files with 4 additions and 6 deletions

2
.gitignore vendored
View File

@@ -2,4 +2,4 @@
/.svn /.svn
/doc/rtf /doc/rtf
_unsused _unsused
*.user* CMakeLists.txt.user*

View File

@@ -1,8 +1,7 @@
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "pimathmatrix.h" #include "pimathmatrix.h"
template<typename Type> bool cmpSquareMatrixWithValue(PIMathMatrix<double> matrix, double val, int num) {
bool cmpSquareMatrixWithValue(PIMathMatrix<double> matrix, Type val, int num) {
bool b = true; bool b = true;
for(int i = 0; i < num; i++) { for(int i = 0; i < num; i++) {
for(int j = 0; j < num; j++) { for(int j = 0; j < num; j++) {

View File

@@ -4,8 +4,7 @@
const uint rows = 3; const uint rows = 3;
const uint cols = 3; const uint cols = 3;
template<typename Type> bool cmpSquareMatrixWithValue(PIMathMatrixT<rows, cols, double> matrix, double val, int num) {
bool cmpSquareMatrixWithValue(PIMathMatrixT<rows, cols, double> matrix, Type val, int num) {
bool b = true; bool b = true;
for(int i = 0; i < num; i++) { for(int i = 0; i < num; i++) {
for(int j = 0; j < num; j++) { for(int j = 0; j < num; j++) {