Home > tt2 > core > tt_min_abs.m

tt_min_abs

PURPOSE ^

Computes approximation to the minimal absolute value in a TT-tensor

SYNOPSIS ^

function [res,ind]=tt_min_abs(tt)

DESCRIPTION ^

Computes approximation to the minimal absolute value in a TT-tensor
   [RES,IND]=TT_MIN_ABS(TT) Tries to compute the minimal absolute value in
   TT-tensor


 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 [res,ind]=tt_min_abs(tt)
0002 %Computes approximation to the minimal absolute value in a TT-tensor
0003 %   [RES,IND]=TT_MIN_ABS(TT) Tries to compute the minimal absolute value in
0004 %   TT-tensor
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 
0017 resmax = tt_max_abs(tt);
0018 ons = tt_ones(size(tt));
0019 
0020 [res,ind]=tt_max_abs(tt-ons*resmax);
0021 res = resmax - res;
0022 
0023 end

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