Difference between revisions of "Ttclass/hdot.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Sync syntax/arguments/outputs with current Spinach source)
(Update function See also links and function index membership)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
−
Hadamard matrix product. Useful as a replacement for trace(A'*B) because trace(A'*B)=hadm(conj(A),B) and the latter only needs O(n^2) multiplications as opposed to O(n^3) for trace(A'*B). Syntax:
+
{{DISPLAYTITLE:ttclass/hdot.m}} __NOTOC__
 +
Hadamard dot product between two tensor train matrices.
  
 +
==Syntax==
  
 
     c=hdot(a,b)
 
     c=hdot(a,b)
  
−
This function is also available for tensor train representations of matrices.
+
==Parameters==
 +
 
 +
    a,b - tensor train objects representing numerical
 +
          arrays of the same dimensions and having
 +
          the same internal topology
 +
 
 +
==Outputs==
 +
 
 +
    c - Hadamard product of a and b, a scalar
 +
 
 +
==See also==
 +
[[ttclass.m]], [[ttclass/dot.m]], [[hdot.m]], [[ttclass/amensolve.m]], [[ttclass/amensum.m]], [[ttclass/clearcoeff.m]], [[ttclass/conj.m]], [[ttclass/ctranspose.m]], [[ttclass/diag.m]], [[ttclass/full.m]], [[ttclass/ismatrix.m]], [[ttclass/isnumeric.m]], [[ttclass/isreal.m]], [[ttclass/kron.m]], [[ttclass/mean.m]], [[ttclass/minus.m]], [[ttclass/mldivide.m]], [[ttclass/mrdivide.m]], [[ttclass/mtimes.m]], [[ttclass/nnz.m]], [[ttclass/norm.m]], [[ttclass/numel.m]], [[ttclass/pack.m]], [[ttclass/plus.m]], [[ttclass/rand.m]], [[ttclass/ranks.m]], [[ttclass/rdivide.m]], [[ttclass/revert.m]], [[ttclass/shrink.m]], [[ttclass/size.m]], [[ttclass/sizes.m]], [[ttclass/subsref.m]], [[ttclass/sum.m]], [[ttclass/trace.m]], [[ttclass/transpose.m]], [[ttclass/truncate.m]], [[ttclass/ttort.m]], [[ttclass/unit_like.m]], [[ttclass/vec.m]], [[Tensor_train_module]]
 +
 
 +
''Version 2.1, authors: [[Dmitry Savostyanov]]''

Latest revision as of 19:42, 6 June 2026