Removed useless includes.
This commit is contained in:
1
tensor.c
1
tensor.c
@@ -1,5 +1,4 @@
|
|||||||
#include "tensor.h"
|
#include "tensor.h"
|
||||||
#include "tensoriterator.h"
|
|
||||||
|
|
||||||
tensor tensor_new(void)
|
tensor tensor_new(void)
|
||||||
{
|
{
|
||||||
|
|||||||
2
tensor.h
2
tensor.h
@@ -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>
|
||||||
|
|||||||
@@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user