Home > dal > loss_sqp.m

loss_sqp

PURPOSE ^

loss_sqp - squared loss function

SYNOPSIS ^

function [floss, gloss]=loss_sqp(zz, bb)

DESCRIPTION ^

 loss_sqp - squared loss function

 Copyright(c) 2009 Ryota Tomioka
 This software is distributed under the MIT license. See license.txt

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % loss_sqp - squared loss function
0002 %
0003 % Copyright(c) 2009 Ryota Tomioka
0004 % This software is distributed under the MIT license. See license.txt
0005 function [floss, gloss]=loss_sqp(zz, bb)
0006 
0007 gloss = zz-bb;
0008 floss = 0.5*sum(gloss.^2);

Generated on Sat 22-Aug-2009 22:15:36 by m2html © 2003