function a = subsref(t,s) %SUBSREF Subscripted reference for a sptenmat. % % Examples % A.subs
tensor 源代码
Tensor技术,作为现代电子工程与数据科学的核心组件之一,广泛应用于机器学习、图像处理及自然语言处理等领域。通过高效的数据结构支持多维数组运算,Tensor极大提升了算法开发效率与性能表现。无论是深度神经网络的构建还是复杂信号分析任务,掌握Tensor操作都是工程师不可或缺的技…
function sz = tsize(a,idx) %TSIZE Tensor size of sptenmat. % % D = TSIZE(X) returns the size of the tensor being stored as a % …
function disp(a,name) %DISP Command window display of a sptenmat. % % DISP(T) displays the tensor without printing its name. % %…
function t = uminus(t) %UMINUS Unary minus (-) for sptenmat. % % See also SPTENMAT. % %MATLAB Tensor Toolbox. %Copyright 2007, S…
Restricted Software License Agreement Sandia Corporation ("SANDIA"), under its Contract No. DE-AC04-94AL85000 with the United Sta…
function X = tenzeros(sz) %TENZEROS Zeros tensor. % % X = TENZEROS(SZ) forms a tensor of size SZ with all zeros. % % TENZ…
function B = full(A) %FULL Convert a sparse tensor to a (dense) tensor. % % B = FULL(A) converts a sptensor A to a (dense) tenso…
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…
% @SPTENSOR % % Files % and - Logical AND (&) for sptensors. % collapse - Collapse sparse tensor along specified dime…
function t = scale(t,s,dims) %SCALE Scale along specified dimensions for sparse tensors. % % Y = SCALE(X,S,DIMS) scales the spar…