mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-peak.git
synced 2025-06-10 18:16:00 +00:00
sta-core independent
This commit is contained in:
parent
d68d395ef6
commit
ff12f10559
@ -2,9 +2,12 @@
|
||||
#include <sta/math/utils.hpp>
|
||||
#include <cstdint>
|
||||
#include <cmath>
|
||||
#include <iostream>
|
||||
|
||||
#ifdef STA_CORE
|
||||
#include <sta/debug/debug.hpp>
|
||||
#include <sta/debug/assert.hpp>
|
||||
#include <sta/debug/profile.hpp>
|
||||
#endif
|
||||
|
||||
namespace sta{
|
||||
|
||||
|
@ -3,9 +3,11 @@
|
||||
#include <cstdint>
|
||||
#include <cstring>
|
||||
#include <iostream>
|
||||
|
||||
#include <sta/debug/debug.hpp>
|
||||
#include <sta/debug/assert.hpp>
|
||||
|
||||
|
||||
namespace sta
|
||||
{
|
||||
namespace math {
|
||||
@ -416,7 +418,7 @@ void matrix::show_serial() {
|
||||
for(uint8_t c = 0; c < get_cols(); c++) {
|
||||
|
||||
STA_DEBUG_PRINT("| ");
|
||||
STA_DEBUG_PRINT(operator()(r, c));
|
||||
STA_DEBUG_PRINTF("%f", operator()(r, c));
|
||||
if(c == get_cols() - 1) {
|
||||
STA_DEBUG_PRINTLN(" |");
|
||||
} else {
|
||||
@ -432,7 +434,7 @@ void matrix::show_serial() {
|
||||
|
||||
void matrix::show_shape() {
|
||||
|
||||
STA_DEBUG_PRINTF("Matrix shape: (%d x %d)", get_rows(), get_cols());
|
||||
STA_DEBUG_PRINTF("Matrix shape: (%d x %d)\n", get_rows(), get_cols());
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user