Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
dtschump committed Jan 10, 2024
2 parents 096cb44 + 1578001 commit dcefc6e
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions CImg.h
Original file line number Diff line number Diff line change
Expand Up @@ -21693,16 +21693,25 @@ namespace cimg_library {
s0 = ss + 10;
s1 = s0; while (s1<se1 && (*s1!=',' || level[s1 - expr._data]!=clevel1)) ++s1;
arg1 = compile(s0,s1,depth1,0,block_flags);
s2 = ++s1; while (s2<se1 && (*s2!=',' || level[s2 - expr._data]!=clevel1)) ++s2;
arg2 = compile(s1,s2,depth1,0,block_flags);
s1 = ++s2; while (s1<se1 && (*s1!=',' || level[s1 - expr._data]!=clevel1)) ++s1;
arg3 = compile(s2,se1,depth1,0,block_flags);

arg2 = arg4 = 0; arg3 = 1;
if (s1<se1) {
s2 = ++s1; while (s2<se1 && (*s2!=',' || level[s2 - expr._data]!=clevel1)) ++s2;
arg3 = compile(s1,s2,depth1,0,block_flags);
if (s2<se1) {
s1 = ++s2; while (s1<se1 && (*s1!=',' || level[s1 - expr._data]!=clevel1)) ++s1;
arg2 = arg3;
arg3 = compile(s2,s1,depth1,0,block_flags);
arg4 = s1<se1?compile(++s1,se1,depth1,0,block_flags):0;
}
}
_cimg_mp_check_type(arg2,2,1,0);
_cimg_mp_check_type(arg3,3,1,0);
if (_cimg_mp_is_scalar(arg1)) _cimg_mp_return(arg2);
_cimg_mp_check_type(arg4,4,1,0);
if (_cimg_mp_is_scalar(arg1)) _cimg_mp_scalar3(mp_lerp,arg2,arg3,arg4);
p1 = _cimg_mp_size(arg1);
pos = vector(p1);
CImg<ulongT>::vector((ulongT)mp_vector_normalize,pos,arg1,p1,arg2,arg3).move_to(code);
CImg<ulongT>::vector((ulongT)mp_vector_normalize,pos,arg1,p1,arg2,arg3,arg4).move_to(code);
return_new_comp = true;
_cimg_mp_return(pos);
}
Expand Down Expand Up @@ -28688,8 +28697,10 @@ namespace cimg_library {
const double
*const ptrs = &_mp_arg(2) + 1,
min_value = _mp_arg(4),
max_value = _mp_arg(5);
CImg<doubleT>(ptrd,siz,1,1,1,true) = CImg<doubleT>(ptrs,siz,1,1,1,true).get_normalize(min_value,max_value);
max_value = _mp_arg(5),
constant_case_ratio = _mp_arg(6);
CImg<doubleT>(ptrd,siz,1,1,1,true) = CImg<doubleT>(ptrs,siz,1,1,1,true).
get_normalize(min_value,max_value,constant_case_ratio);
return cimg::type<double>::nan();
}

Expand Down

0 comments on commit dcefc6e

Please sign in to comment.