contents.m
来自「张量分析工具」· M 代码 · 共 204 行
M
204 行
% Tensor Toolbox (Sandia National Labs)% Version 2.2 10-JAN-2007% % Tensor Toolbox for dense, sparse, and decomposed n-way arrays.% % khatrirao - Khatri-Rao product of matrices.% sptendiag - Creates a sparse tensor with v on the diagonal.% sptenrand - Sparse uniformly distributed random tensor.% tendiag - Creates a tensor with v on the diagonal.% tenones - Ones tensor.% tenrand - Uniformly distributed pseudo-random tensor.% tenzeros - Zeros tensor.%% @TENSOR% and - Logical AND (&) for tensors.% collapse - Collapse tensor along specified dimensions.% contract - Contract tensor along two dimensions (array trace).% ctranspose - is not defined for tensors.% disp - Command window display of a tensor.% display - Command window display of a tensor.% double - Convert tensor to double array.% end - Last index of indexing expression for tensor.% eq - Equal (==) for tensors.% find - Find subscripts of nonzero elements in a tensor.% full - Convert to a (dense) tensor.% ge - Greater than or equal (>=) for tensors.% gt - Greater than (>) for tensors.% innerprod - Efficient inner product with a tensor.% isequal - for tensors.% ldivide - Left array divide for tensor.% le - Less than or equal (<=) for tensor.% lt - Less than (<) for tensor.% minus - Binary subtraction (-) for tensors.% mldivide - Slash left division for tensors.% mrdivide - Slash right division for tensors.% mtimes - tensor-scalar multiplication.% mttkrp - Matricized tensor times Khatri-Rao product for tensor.% ndims - Return the number of dimensions of a tensor.% ne - Not equal (~=) for tensors.% nnz - Number of nonzeros for tensors. % norm - Frobenius norm of a tensor.% not - Logical NOT (~) for tensors.% nvecs - Compute the leading mode-n vectors for a tensor.% or - Logical OR (|) for tensors.% permute - Permute tensor dimensions.% plus - Binary addition (+) for tensors. % power - Elementwise power (.^) operator for a tensor.% rdivide - Right array divide for tensors.% scale - Scale along specified dimensions of tensor.% size - Tensor dimensions.% squeeze - Remove singleton dimensions from a tensor.% subsasgn - Subscripted assignment for a tensor.% subsref - Subscripted reference for tensors.% tenfun - Apply a function to each element in a tensor.% tensor - Create tensor.% times - Array multiplication for tensors.% transpose - is not defined on tensors.% ttm - Tensor times matrix.% ttt - Tensor mulitplication (tensor times tensor).% ttv - Tensor times vector.% uminus - Unary minus (-) for tensors.% uplus - Unary plus (+) for tensors.% xor - Logical EXCLUSIVE OR for tensors.%% @SPTENSOR% and - Logical AND (&) for sptensors.% collapse - Collapse sparse tensor along specified dimensions.% contract - Contract sparse tensor along two dimensions (array trace).% ctranspose - is not defined for sparse tensors.% disp - Command window display of a sparse tensor.% display - Command window display of a sparse tensor.% double - Converts sparse tensor to a dense multidimensional array.% elemfun - Manipulate the nonzero elements of a sparse tensor.% end - Last index of indexing expression for sparse tensor.% eq - Equal (==) for sptensors.% find - Find subscripts of nonzero elements in a sparse tensor.% full - Convert a sparse tensor to a (dense) tensor.% ge - Greater than or equal for sptensors.% gt - Greater than for sptensors.% innerprod - Efficient inner product with a sparse tensor.% isequal - for sptensors.% ldivide - Array right division for sparse tensors.% le - Less than or equal for sptensors.% lt - Less than for sptensors.% minus - Binary subtraction for sparse tensors. % mldivide - Slash left division for sparse tensors.% mrdivide - Slash right division for sparse tensors.% mtimes - sptensor-scalar multiplication.% mttkrp - Matricized tensor times Khatri-Rao product for sparse tensor.% ndims - Number of dimensions of a sparse tensor.% ne - Not equal (~=) for sptensors.% nnz - Number of nonzeros in sparse tensor.% norm - Frobenius norm of a sparse tensor.% not - Logical NOT (~) for sptensors.% nvecs - Compute the leading mode-n vectors for a sparse tensor.% ones - Replace nonzero elements of sparse tensor with ones.% or - Logical OR (|) for sptensors.% permute - Rearrange the dimensions of a sparse tensor.% plus - Binary addition for sparse tensors. % rdivide - Array right division for sparse tensors.% scale - Scale along specified dimensions for sparse tensors.% size - Sparse tensor dimensions.% sptensor - Create a sparse tensor.% squeeze - Remove singleton dimensions from a sparse tensor.% subsasgn - Subscripted assignment for sparse tensor.% subsref - Subscripted reference for a sparse tensor.% times - Array multiplication for sparse tensors.% transpose - is not defined on sparse tensors.% ttm - Sparse tensor times matrix.% ttt - Sparse tensor times sparse tensor.% ttv - Sparse tensor times vector.% uminus - Unary minus (-) for sptensor.% uplus - Unary plus (+) for sptensor.% xor - Logical XOR for sptensors.%% @TTENSOR% disp - Command window display of a ttensor.% display - Command window display of a ttensor.% double - Convert ttensor to double array.% end - Last index of indexing expression for ttensor.% full - Convert a ttensor to a (dense) tensor.% innerprod - Efficient inner product with a ttensor.% mtimes - Implement scalar multiplication for a ttensor.% mttkrp - Matricized tensor times Khatri-Rao product for ttensor.% ndims - Return the number of dimensions for a ttensor.% norm - Norm of a ttensor.% nvecs - Compute the leading mode-n vectors for a ttensor.% permute - Permute dimensions for a ttensor.% size - Size of a ttensor.% subsasgn - Subscripted reference for a ttensor.% subsref - Subscripted reference for a ttensor.% ttensor - Tensor stored as a Tucker operator (decomposed).% ttm - Tensor times matrix for ttensor.% ttv - Tensor times vector for ttensor.% uminus - Unary minus for ttensor.% uplus - Unary plus for ttensor.%% @KTENSOR% arrange - Arranges the rank-1 terms of a ktensor.% datadisp - Special display of a ktensor.% disp - Command window display for a ktensor.% display - Command window display for a ktensor.% double - Convert a ktensor to a double array.% end - Last index of indexing expression for ktensor.% fixsigns - Fix sign ambiguity of a ktensor.% full - Convert a ktensor to a (dense) tensor.% innerprod - Efficient inner product with a ktensor.% ktensor - Tensor stored as a Kruskal operator (decomposed).% minus - Binary subtraction for ktensor. % mtimes - Implement A*B (scalar multiply) for ktensor.% mttkrp - Matricized tensor times Khatri-Rao product for ktensor.% ndims - Number of dimensions for a ktensor.% norm - Frobenius norm of a ktensor.% nvecs - Compute the leading mode-n vectors for a ktensor.% permute - Permute dimensions of a ktensor.% plus - Binary addition for ktensor.% size - Size of ktensor.% subsasgn - Subscripted assignement for ktensor.% subsref - Subscripted reference for a ktensor.% times - Element-wise multiplication for ktensor.% ttm - Tensor times matrix for ktensor.% ttv - Tensor times vector for ktensor.% uminus - Unary minus for ktensor. % uplus - Unary plus for a ktensor. %% @TENMAT% ctranspose - Complex conjugate transpose for tenmat.% disp - Command window display of a matricized tensor (tenmat).% display - Command window display of a tenmat.% double - Convert tenmat to double array.% end - Last index of indexing expression for tenmat.% minus - Binary subtraction (-) for tenmat.% mtimes - Multiplies two tenmat objects.% norm - Frobenius norm of a tenmat.% plus - Binary addition (+) for tenmat. % size - Size of tenmat.% subsasgn - Subscripted assignment for tenmat. % subsref - Subscripted reference for tenmat.% tenmat - Create a matricized tensor.% tsize - Tensor size of tenmat.% uminus - Unary minus (-) for tenmat.% uplus - Unary plus (+) for tenmat.%% @SPTENMAT% aatx - Implicitly compute A * A' * x for sptenmat.% disp - Command window display of a sptenmat.% display - Command window display of a sptenmat.% double - Convert a sptenmat to a sparse matrix.% end - Last index of indexing expression for sptenmat.% full - Convert a sptenmat to a (dense) tenmat.% nnz - Return number of nonzeros in a sptenmat.% norm - Frobenius norm of a sptenmat.% size - Return size of sptenmat.% sptenmat - Matricized sparse tensor stored as a sparse 2D array.% subsasgn - Subscripted assignment for sptenmat. % subsref - Subscripted reference for a sptenmat.% tsize - Tensor size of sptenmat.% uminus - Unary minus (-) for sptenmat.% uplus - Unary plus (+) for sptenmat.%% ALGORITHMS% parafac_als - Compute a PARAFAC decomposition of any type of tensor.% tucker_als - Higher-order orthogonal iteration.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?