Home > tt2 > @tt_matrix > times.m

times

PURPOSE ^

A=B.*C

SYNOPSIS ^

function [a]=times(b,c,varargin)

DESCRIPTION ^

A=B.*C
   [A]=TIMES(B,C) Computes Hadamard (elementwise) product of two
   TT-matrices


 TT-Toolbox 2.2, 2009-2012

This is TT Toolbox, written by Ivan Oseledets et al.
Institute of Numerical Mathematics, Moscow, Russia
webpage: http://spring.inm.ras.ru/osel

For all questions, bugs and suggestions please mail
ivan.oseledets@gmail.com
---------------------------

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [a]=times(b,c,varargin)
0002 %A=B.*C
0003 %   [A]=TIMES(B,C) Computes Hadamard (elementwise) product of two
0004 %   TT-matrices
0005 %
0006 %
0007 % TT-Toolbox 2.2, 2009-2012
0008 %
0009 %This is TT Toolbox, written by Ivan Oseledets et al.
0010 %Institute of Numerical Mathematics, Moscow, Russia
0011 %webpage: http://spring.inm.ras.ru/osel
0012 %
0013 %For all questions, bugs and suggestions please mail
0014 %ivan.oseledets@gmail.com
0015 %---------------------------
0016 n = b.n;
0017 m = b.m;
0018 b = b.tt;
0019 c = c.tt;
0020 a = b.*c;
0021 a = tt_matrix(a, n, m);
0022 end

Generated on Wed 08-Feb-2012 18:20:24 by m2html © 2005