Cайт Алексея и Александра Друцы — программирование, ИТ, математика
/* === Vector Operations === */
/* Some operations like scalar product, linear operations, etc */
/* copyrights www.adrutsa.ru */

#include "math.h"

void ad_vo_copy(long int n, double * u, double * v); /* u = v */

double ad_vo_scalprod(long int n, double * v, double *u); /* return u*v */

void ad_vo_addline(long int n, double * v, double * u, double c); /* v = v + u*c */

void ad_vo_scalmult(long int n, double * v, double c); /* v = v*c */

double ad_vo_norm_l2(long int n, double * v); /* l_2 norm of the vector v */

double ad_vo_norm_l1(long int n, double * v); /* l_1 norm of the vector v */

double ad_vo_norm_max(long int n, double * v); /* max norm (l_infinity norm) of the vector v */
Скачать файл
Информация о файле
Размер:716 B
Скачивали:57 раз

"К-мерная музыка - это слишком плоско"
- Жители k+1-ого измерения

At least now I'm sure you're not Pinochio, because if you were, your nose would've crashed into your monitor by now.

The problem here seems to be that the material is unreleased? If that is the case, you can easily fix the problem by releasing it. We'll be more than glad to help you distribute it - free of charge! - to our users.

© Alexey & Alexander Drutsa, 2009–2011