posadautil
Class ArrayPos

java.lang.Object
  |
  +--posadautil.ArrayPos

public class ArrayPos
extends java.lang.Object

Libreria de metodos para arreglos unidimensionales (vectores).

Version:
1.0 05/09/2001
Author:
Omar Posada Villarreal

Constructor Summary
ArrayPos()
           
 
Method Summary
static double absoluteNorm(double[] x1)
          Calcula la norma absoluta de un vector.
static double absoluteNorm(double[] x1, double[] x2)
          Calcula la norma absoluta de x1 - x2.
static void clean(double[] x)
          Inicializa a cero el arreglo.
static boolean copyArray(double[] source, double[] target)
          Asigna los valores de "source" a "target".
static void show(double[] vector)
          Muestra el vector.
static void show(double[][] matrix)
          Muestra la matriz.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

ArrayPos

public ArrayPos()
Method Detail

clean

public static void clean(double[] x)
Inicializa a cero el arreglo.

copyArray

public static boolean copyArray(double[] source,
                                double[] target)
Asigna los valores de "source" a "target".
Returns:

false. Son de distinto taman~o.

true. Se copiaron.

absoluteNorm

public static double absoluteNorm(double[] x1)
Calcula la norma absoluta de un vector.

absoluteNorm

public static double absoluteNorm(double[] x1,
                                  double[] x2)
Calcula la norma absoluta de x1 - x2.
Returns:
0.0 Si no son del mismo taman~o o se anulan

show

public static void show(double[] vector)
Muestra el vector.

show

public static void show(double[][] matrix)
Muestra la matriz.