Displaying 9 results from an estimated 9 matches for "truthiness".
2019 Aug 19
2
Check length of logical vector also for operands of || and &&?
Hi everyone
The following behavior (in R 3.6.1 and R-devel r77040) caught me by
surprise today:
truthy <- c(TRUE, FALSE)
falsy <- c(FALSE, TRUE, FALSE)
if (truthy) "check"
#> Warning in if (truthy) "check": the condition has length > 1 and only the
#> first element will be used
#> [1] "check"
if (falsy) "check"
#> Warning in if
2014 Sep 30
2
Intel Fortran compiler returns a -1 TRUE value
I have access to a cluster on which I have been supplied with R 3.1.0 which
appears to have been built using the intel compiler tools.
The following minimal Fortran file:
subroutine truth(lind)
logical lind
lind = .TRUE.
end
Compiles thusly:
arcadia> R CMD SHLIB truth.f
ifort -fpic -O3 -xHOST -axCORE-AVX-I -fp-model precise -c truth.f -o
truth.o
ifort: command
2020 Apr 09
2
[RFC] Usage of NDEBUG as a guard for non-assert debug code
...timizations and no debug info is worse than useless).
>
I don't think people would agree to that - I believe at least a few regular
LLVM developers use that mode regularly.
> Custom asserts also have the advantage of having a proper message
> parameter and not needing to rely on the truthiness of string literals.
> Obviously this is a much more invasive change than what you are proposing,
> but in my opinion it’s the correct thing to do.
>
>
>
> Thanks,
>
> Christopher Tetreault
>
>
>
> *From:* llvm-dev <llvm-dev-bounces at lists.llvm.org> *On...
2020 Apr 09
7
[RFC] Usage of NDEBUG as a guard for non-assert debug code
Hi all,
During discussions about assertions in the Flang project, we noticed that there are a lot of cases in LLVM that #ifndef NDEBUG is used as a guard for non-assert code that we want enabled in debug builds.
This works fine on its own, however it affects the behaviour of LLVM_ENABLE_ASSERTIONS; since NDEBUG controls whether assertions are enabled or not, a lot of debug code gets enabled in
2007 Mar 22
2
quick legend() question
Hi
I have a scatterplot of points with pch=1 and a single point with
pch=3, lwd=3.
It has a high line width to attract attention to it.
The following script
plot(rnorm(10),rnorm(10),col="black")
points(rnorm(10),rnorm(10),col="red")
points(0,0,pch=3,lwd=3)
if(TRUE){
legend("bottomleft",c("a","b","Truth"),pch=c(1,1,3),col=c
2012 Jul 20
7
Oracle tries to capture CentOS users
Hello CentOS Guys :-)
Oracle has created a new Website to capture CentOS Users :o
http://linux.oracle.com/switch/centos/
--
Chris
2018 Nov 10
3
[RFC] Tablegen-erated GlobalISel Combine Rules
...uot;bool" in there seems a bit redundant.
I think there's three kinds values involved in the predicates. The first is the inputs like these values come from other parts of the match and it makes sense that they belong in 'ins'. The second is values that are directly related to the truthiness of the predicate such as bool, unsigned (register number), MachineInstr*, etc.. These are the result of the underlying function and there can only be one of these per predicate. The type can potentially be std::pair or std::tuple to give multiple results provided a suitable conversion to bool is pr...
2018 Nov 09
5
[RFC] Tablegen-erated GlobalISel Combine Rules
...hat fills out the PreferredTuple (passed by reference) whenever it returns true for a successful match. We could have made the predicate return std::pair<bool, PreferredTuple> instead but that's less efficient (it would be an sret return on many targets) and would require us to define the truthiness (no examples of are in this email as I expect it to be a rare thing to need) in order to act as a predicate. Normally, you'd feed this into a (create_imm ...) or a (create_operand ...) in the apply section. However, in this particular case the data being passed determines the entirety of the re...
2018 Nov 12
3
[RFC] Tablegen-erated GlobalISel Combine Rules
..." in there seems a bit redundant.
>> I think there's three kinds values involved in the predicates. The first is the inputs like these values come from other parts of the match and it makes sense that they belong in 'ins'. The second is values that are directly related to the truthiness of the predicate such as bool, unsigned (register number), MachineInstr*, etc.. These are the result of the underlying function and there can only be one of these per predicate. The type can potentially be std::pair or std::tuple to give multiple results provided a suitable conversion to bool is pr...