代码搜索:tensor
找到约 495 项符合「tensor」的源代码
代码结果 495
www.eeworm.com/read/205036/15328845
m uminus.m
function t = uminus(t)
%UMINUS Unary minus (-) for sptenmat.
%
% See also SPTENMAT.
%
%MATLAB Tensor Toolbox.
%Copyright 2007, Sandia Corporation.
% This is the MATLAB Tensor Toolbox by Brett Bade
www.eeworm.com/read/205036/15328853
m tenzeros.m
function X = tenzeros(sz)
%TENZEROS Zeros tensor.
%
% X = TENZEROS(SZ) forms a tensor of size SZ with all zeros.
%
% TENZEROS(SZ) is equivalent to TENSOR(ZEROS(SZ(1),SZ(2),...),SZ).
%
% S
www.eeworm.com/read/205036/15328873
m ttm.m
function Y = ttm(X,V,varargin)
%TTM Sparse tensor times matrix.
%
% Y = TTM(X,A,N) computes the n-mode product of the sptensor X with
% a dense matrix A; i.e., X x_N A. The integer N specifies th
www.eeworm.com/read/205036/15328877
m mttkrp.m
function V = mttkrp(X,U,n)
%MTTKRP Matricized tensor times Khatri-Rao product for sparse tensor.
%
% V = MTTKRP(X,U,n) efficiently calculates the matrix product of the
% n-mode matricization o
www.eeworm.com/read/205036/15328880
m scale.m
function t = scale(t,s,dims)
%SCALE Scale along specified dimensions for sparse tensors.
%
% Y = SCALE(X,S,DIMS) scales the sparse tensor X along the
% dimension(s) specified in DIMS using the sca
www.eeworm.com/read/205036/15328884
m innerprod.m
function res = innerprod(X,Y)
%INNERPROD Efficient inner product with a sparse tensor.
%
% R = INNERPROD(X,Y) efficiently computes the inner product between
% two tensors X and Y. If Y is a tenso
www.eeworm.com/read/205036/15328897
m uminus.m
function t = uminus(t)
%UMINUS Unary minus (-) for sptensor.
%
% See also SPTENSOR.
%
%MATLAB Tensor Toolbox.
%Copyright 2007, Sandia Corporation.
% This is the MATLAB Tensor Toolbox by Brett Bade
www.eeworm.com/read/205036/15328913
m sptenrand.m
function Y = sptenrand(sz,nz)
%SPTENRAND Sparse uniformly distributed random tensor.
%
% R = SPTENRAND(sz,density) creates a random sparse tensor of the
% specified sz with approximately densi
www.eeworm.com/read/205036/15328938
m q_collapse_scale_doc.m
%% Collapsing and scaling tensors
% The tensor and sptensor classes support that notion of collapsing and
% scaling dimensions.
%% Examples of collapsing a tensor
X = tenrand([4 3 2]) %
www.eeworm.com/read/205036/15328957
m m1_multiply_doc.m
%% Multiplying tensors
%% Tensor times vector (ttv for tensor)
% Compute a tensor times a vector (or vectors) in one (or more) modes.
rand('state',0);
X = tenrand([5,3,4,2]); %