mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-peak.git
synced 2025-09-29 06:37:33 +00:00
Optimize correct
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <cmath>
|
||||
#include <sta/debug/debug.hpp>
|
||||
#include <sta/debug/assert.hpp>
|
||||
#include <sta/debug/profile.hpp>
|
||||
|
||||
namespace sta{
|
||||
|
||||
@@ -13,7 +14,6 @@ namespace linalg {
|
||||
|
||||
|
||||
matrix dot(matrix a, matrix b) {
|
||||
|
||||
STA_ASSERT_MSG(a.get_cols() == b.get_rows(), "Matrix dimension mismatch");
|
||||
|
||||
uint8_t k = a.get_cols();
|
||||
@@ -119,7 +119,6 @@ matrix skew_symmetric(matrix m) {
|
||||
|
||||
};
|
||||
matrix add(matrix a, matrix b) {
|
||||
|
||||
STA_ASSERT_MSG( a.get_rows() == b.get_rows() && a.get_cols() == b.get_cols(), "Matrix dimensions mismatch!" );
|
||||
|
||||
matrix output = a.clone();
|
||||
@@ -142,7 +141,7 @@ matrix subtract(matrix a, matrix b) {
|
||||
return output;
|
||||
};
|
||||
matrix dot(matrix m, float s) {
|
||||
|
||||
|
||||
float size = m.get_size();
|
||||
|
||||
matrix output = m.clone();
|
||||
|
Reference in New Issue
Block a user