drasys.or.linear.blas
Class MatrixBLAS3

java.lang.Object
  |
  +--drasys.or.linear.blas.MatrixBLAS3

public class MatrixBLAS3
extends java.lang.Object

BLAS3 layer that operates on contiguous vectors and matrices. For a traditional and more feature rich implementation of the BLAS see BLAS1, BLAS2 and BLAS3.

References:

Linear Algebra and Its Applications
    Gilbert Strang / Hardcover / Published 1988
Matrix Computations (Johns Hopkins Studies in the Mathematical Sciences)
    Gene H. Golub, Charles F. Van Loan (Contributor) / Paperback / Published 1996
Numerical Recipes in C : The Art of Scientific Computing
    William H. Press, et al / Hardcover / Published 1993


Constructor Summary
MatrixBLAS3()
          Create a matrix BLAS with the default BLAS implementation and a base index of '0'.
MatrixBLAS3(int base)
          Create a matrix BLAS with a default BLAS implementation and an explicit base index.
MatrixBLAS3(int base, BLAS3I blas3)
          Create a matrix BLAS with an explicit BLAS implementation and an explicit base index.
 
Method Summary
 void dgemm(boolean transposeA, boolean transposeB, double alpha, ContiguousMatrixI A, ContiguousMatrixI B, double beta, ContiguousMatrixI C)
          Computes: C = alpha*A*B + beta*C.
 void zgemm(boolean transposeA, boolean transposeB, ComplexI alpha, ContiguousMatrixI A, ContiguousMatrixI B, ComplexI beta, ContiguousMatrixI C)
          Computes: C = alpha*A*B + beta*C.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatrixBLAS3

public MatrixBLAS3()
Create a matrix BLAS with the default BLAS implementation and a base index of '0'. All computations will use elements A[0...(nrow-1)][0...(ncol-1)].

MatrixBLAS3

public MatrixBLAS3(int base)
Create a matrix BLAS with a default BLAS implementation and an explicit base index. Typically 'base' will be '0' or '1'. All computations will use elements A[base...(nrow-1)][base...(ncol-1)].

MatrixBLAS3

public MatrixBLAS3(int base,
                   BLAS3I blas3)
Create a matrix BLAS with an explicit BLAS implementation and an explicit base index. Typically 'base' will be '0' or '1'. All computations will use elements A[base...(nrow-1)][base...(ncol-1)].
Method Detail

dgemm

public void dgemm(boolean transposeA,
                  boolean transposeB,
                  double alpha,
                  ContiguousMatrixI A,
                  ContiguousMatrixI B,
                  double beta,
                  ContiguousMatrixI C)
           throws BlasException
Computes: C = alpha*A*B + beta*C.

zgemm

public void zgemm(boolean transposeA,
                  boolean transposeB,
                  ComplexI alpha,
                  ContiguousMatrixI A,
                  ContiguousMatrixI B,
                  ComplexI beta,
                  ContiguousMatrixI C)
           throws BlasException
Computes: C = alpha*A*B + beta*C.


Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com