---
name: "EmbedderPowerIterationDense.cpp"
section: "3tulip"
platform: "linux"
package: "tulip-doc"
version: "3.1.2-2.3"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/EmbedderPowerIterationDense.cpp"
---

# EmbedderPowerIterationDense.cpp(3tulip)

## NAME

EmbedderPowerIterationDense.cpp -

## SYNOPSIS

`#include <stdlib.h>`\
 `#include <stdio.h>`\
 `#include <math.h>`\

### Functions

void **cpvec** (double \*copy, int beg, int end, double \*vec)\
 double **dot** (double \*vec1, int beg, int end, double \*vec2)\
 void **scadd** (double \*vec1, int beg, int end, double fac, double \*vec2)\
 void **vecscale** (double \*vec1, int beg, int end, double alpha, double \*vec2)\
 double **norm** (double \*vec, int beg, int end)\
 void **mat\_mult\_vec** (double \*\*mat, int **dim1**, int **dim2**, double \*vec, double \*result)\
 void **power\_iteration** (double \*\*square\_mat, int n, int neigs, double \*\*eigs, double \*evals)\

### Variables

int **p\_iteration\_terations** = 1\
 double **p\_iteration\_threshold** = 1e-3\

## Function Documentation

### void cpvec (double \* copy, int beg, int end, double \* vec) Authors: David Auber, Patrick Mary, Morgan Mathiaut from the LaBRI Visualization Team Email : auber@tulip-software.org Last modification : 13/03/2009 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

### double dot (double \* vec1, int beg, int end, double \* vec2)

### void mat\_mult\_vec (double \*\* mat, int dim1, int dim2, double \* vec, double \* result)

### double norm (double \* vec, int beg, int end)

### void power\_iteration (double \*\* square\_mat, int n, int neigs, double \*\* eigs, double \* evals)

### void scadd (double \* vec1, int beg, int end, double fac, double \* vec2)

### void vecscale (double \* vec1, int beg, int end, double alpha, double \* vec2)

## Variable Documentation

### int p\_iteration\_terations = 1

### double p\_iteration\_threshold = 1e-3 Authors: David Auber, Patrick Mary, Morgan Mathiaut from the LaBRI Visualization Team Email : auber@tulip-software.org Last modification : 13/03/2009 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

## Author

Generated automatically by Doxygen for Tulip Plugins Library from the source code.
