Removed useless includes.

This commit is contained in:
2023-05-07 17:18:04 +02:00
parent 1513222f12
commit 113220f484
3 changed files with 2 additions and 5 deletions

View File

@@ -1,5 +1,4 @@
#include "tensor.h" #include "tensor.h"
#include "tensoriterator.h"
tensor tensor_new(void) tensor tensor_new(void)
{ {

View File

@@ -1,8 +1,6 @@
#ifndef TENSOR_H_INCLUDED #ifndef TENSOR_H_INCLUDED
#define TENSOR_H_INCLUDED #define TENSOR_H_INCLUDED
#include <_types/_uint32_t.h>
#include <_types/_uint8_t.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>

View File

@@ -39,8 +39,8 @@ dtype *tensoriter_scalar_get(tensoriter_scalar it)
void tensoriter_scalar_map(tensoriter_scalar it, dtype (*func)(dtype)) void tensoriter_scalar_map(tensoriter_scalar it, dtype (*func)(dtype))
{ {
do { do {
dtype el = *tensoriter_scalar_get(it); dtype *el = tensoriter_scalar_get(it);
el = func(el); *el = func(*el);
} while(tensoriter_scalar_next(it)); } while(tensoriter_scalar_next(it));
} }