| modeSum-methods | R Documentation | 
Given a mode for a K-tensor, this returns the K-1 tensor resulting from summing across that particular mode.
modeSum(tnsr, m, drop)
## S4 method for signature 'Tensor'
modeSum(tnsr, m = NULL, drop = FALSE)
tnsr | 
 the Tensor instance  | 
m | 
 the index of the mode to sum across  | 
drop | 
 whether or not mode m should be dropped  | 
modeSum(tnsr,m=NULL,drop=FALSE)
K-1 or K tensor, where K = x@num_modes
modeMean
tnsr <- rand_tensor()
modeSum(tnsr,3,drop=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.