Nothing
setMethod("Compare",
c(e1="gpu.matrix.tensorflow", e2="ANY"),
function(e1, e2)
{
op = .Generic[[1]]
castMatrix <- castTypeOperations(e1,e2)
e1 <- castMatrix[[1]]
e2 <- castMatrix[[2]]
dtype(e2) <- dtype(e1)
switch(op,
'==' = {
return(as.matrix(e1@gm == e2@gm))
},
'>' = {
return(as.matrix(e1@gm > e2@gm))
},
'<' = {
return(as.matrix(e1@gm < e2@gm))
},
'!=' = {
return(as.matrix(e1@gm != e2@gm))
},
'<='={
return(as.matrix(e1@gm <= e2@gm))
},
'>=' = {
return(as.matrix(e1@gm >= e2@gm))
}
)
}
)
setMethod("Compare",
c(e1="ANY", e2="gpu.matrix.tensorflow"),
function(e1, e2)
{
op = .Generic[[1]]
castMatrix <- castTypeOperations(e1,e2)
e1 <- castMatrix[[1]]
e2 <- castMatrix[[2]]
dtype(e1) <- dtype(e2)
switch(op,
'==' = {
return(as.matrix(e1@gm == e2@gm))
},
'>' = {
return(as.matrix(e1@gm > e2@gm))
},
'<' = {
return(as.matrix(e1@gm < e2@gm))
},
'!=' = {
return(as.matrix(e1@gm != e2@gm))
},
'<='={
return(as.matrix(e1@gm <= e2@gm))
},
'>=' = {
return(as.matrix(e1@gm >= e2@gm))
}
)
}
)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.