debug: the developper has the responsability to call once implementations

This commit is contained in:
2026-07-22 09:20:56 +02:00
parent 0ce90d7bae
commit 7a6546bc94
2 changed files with 2402 additions and 11 deletions
+12 -7
View File
@@ -14,9 +14,14 @@ IMPLEMENTATION_FTEST()
#include <windows.h>
#endif
//#define IMPLEMENTATION_DIMENSION
//#define IMPLEMENTATION_TENSOR
#include "y_tensor_h.h"
#ifndef _IMPLEMENTATION_DIMENSION
#define _IMPLEMENTATION_DIMENSION
IMPLEMENTATION_DIMENSION()
#endif
TEST(dimension0){
@@ -101,20 +106,20 @@ TEST(SplitDim_2){
TEST(SubDim){
TEST(SubDimB){
dimension *D=create_dim(4);
D->shape[0]=2;
D->shape[1]=3;
D->shape[2]=5;
D->shape[3]=6;
D->shape[0]=12;
D->shape[1]=23;
D->shape[2]=15;
D->shape[3]=26;
dimension *d_head2 = sub_minus_dim_head(D,2);
EXPECT_EQ(d_head2->rank, 2*3);
EXPECT_EQ(d_head2->rank, 12*23);
dimension *d_tail2 = sub_minus_dim_tail(D,2);
EXPECT_EQ(d_tail2->rank, 5*6);
EXPECT_EQ(d_tail2->rank, 15*26);
free_dimension(D);
free(d_tail2);
+2390 -4
View File
File diff suppressed because it is too large Load Diff