Table of Contents
QccDatasetCalcVectorPowers - calculate the power (squared norm) of
the vectors of a dataset
#include "libQccPack.h"
int QccDatasetCalcVectorPowers(const
QccDataset *dataset, QccVector vector_power);
QccDatasetCalcVectorPowers()
calculates the squared norm (vector power) of each vector in dataset->vectors.
These vector powers are returned as a vector in vector_power. vector_power
is assumed to be allocated with space sufficient to store the vector powers;
use QccDatasetGetBlockSize(3)
to find out how many vector-power values
will be returned.
On success, 0 is returned. On error, 1
is returned.
QccDataset(3)
, QccVectorNorm(3)
, QccDatasetGetBlockSize(3)
,
QccPack(3)
For datasets being accessed via block-based access, QccDatasetCalcVectorPowers()
works on only the current block of the dataset.
Copyright (C) 1997-2021
James E. Fowler
Table of Contents