Table of Contents

NAME

QccDatasetCalcVectorPowers - calculate the power (squared norm) of the vectors of a dataset

SYNOPSIS

#include "libQccPack.h"

int QccDatasetCalcVectorPowers(const QccDataset *dataset, QccVector vector_power);

DESCRIPTION

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.

RETURN VALUE

On success, 0 is returned. On error, 1 is returned.

SEE ALSO

QccDataset(3) , QccVectorNorm(3) , QccDatasetGetBlockSize(3) , QccPack(3)

NOTES

For datasets being accessed via block-based access, QccDatasetCalcVectorPowers() works on only the current block of the dataset.

AUTHOR

Copyright (C) 1997-2021 James E. Fowler


Table of Contents



Get QccPack at SourceForge.net. Fast, secure and Free Open Source software downloads