On this page:
=-1
<-1
<=-1
>-1
>=-1
8.12

11 Tensorized comparison functions🔗ℹ

These functions compare two tensors of rank 1 and the same shape and return a tensor where an element is 1.0 if the corresponding scalars in the two argument tensors would return #t when compared with the given scalar comparison function.

procedure

(=-1 t0 t1)  tensor?

  t0 : tensor?
  t1 : tensor?
Compare the scalars in t0 and t1 with =-0-0

procedure

(<-1 t0 t1)  tensor?

  t0 : tensor?
  t1 : tensor?
Compare the scalars in t0 and t1 with <-0-0

procedure

(<=-1 t0 t1)  tensor?

  t0 : tensor?
  t1 : tensor?
Compare the scalars in t0 and t1 with <=-0-0

procedure

(>-1 t0 t1)  tensor?

  t0 : tensor?
  t1 : tensor?
Compare the scalars in t0 and t1 with >-0-0

procedure

(>=-1 t0 t1)  tensor?

  t0 : tensor?
  t1 : tensor?
Compare the scalars in t0 and t1 with >=-0-0