kusano 2b45e8
/*********************************************************************/
kusano 2b45e8
/* Copyright 2009, 2010 The University of Texas at Austin.           */
kusano 2b45e8
/* All rights reserved.                                              */
kusano 2b45e8
/*                                                                   */
kusano 2b45e8
/* Redistribution and use in source and binary forms, with or        */
kusano 2b45e8
/* without modification, are permitted provided that the following   */
kusano 2b45e8
/* conditions are met:                                               */
kusano 2b45e8
/*                                                                   */
kusano 2b45e8
/*   1. Redistributions of source code must retain the above         */
kusano 2b45e8
/*      copyright notice, this list of conditions and the following  */
kusano 2b45e8
/*      disclaimer.                                                  */
kusano 2b45e8
/*                                                                   */
kusano 2b45e8
/*   2. Redistributions in binary form must reproduce the above      */
kusano 2b45e8
/*      copyright notice, this list of conditions and the following  */
kusano 2b45e8
/*      disclaimer in the documentation and/or other materials       */
kusano 2b45e8
/*      provided with the distribution.                              */
kusano 2b45e8
/*                                                                   */
kusano 2b45e8
/*    THIS  SOFTWARE IS PROVIDED  BY THE  UNIVERSITY OF  TEXAS AT    */
kusano 2b45e8
/*    AUSTIN  ``AS IS''  AND ANY  EXPRESS OR  IMPLIED WARRANTIES,    */
kusano 2b45e8
/*    INCLUDING, BUT  NOT LIMITED  TO, THE IMPLIED  WARRANTIES OF    */
kusano 2b45e8
/*    MERCHANTABILITY  AND FITNESS FOR  A PARTICULAR  PURPOSE ARE    */
kusano 2b45e8
/*    DISCLAIMED.  IN  NO EVENT SHALL THE UNIVERSITY  OF TEXAS AT    */
kusano 2b45e8
/*    AUSTIN OR CONTRIBUTORS BE  LIABLE FOR ANY DIRECT, INDIRECT,    */
kusano 2b45e8
/*    INCIDENTAL,  SPECIAL, EXEMPLARY,  OR  CONSEQUENTIAL DAMAGES    */
kusano 2b45e8
/*    (INCLUDING, BUT  NOT LIMITED TO,  PROCUREMENT OF SUBSTITUTE    */
kusano 2b45e8
/*    GOODS  OR  SERVICES; LOSS  OF  USE,  DATA,  OR PROFITS;  OR    */
kusano 2b45e8
/*    BUSINESS INTERRUPTION) HOWEVER CAUSED  AND ON ANY THEORY OF    */
kusano 2b45e8
/*    LIABILITY, WHETHER  IN CONTRACT, STRICT  LIABILITY, OR TORT    */
kusano 2b45e8
/*    (INCLUDING NEGLIGENCE OR OTHERWISE)  ARISING IN ANY WAY OUT    */
kusano 2b45e8
/*    OF  THE  USE OF  THIS  SOFTWARE,  EVEN  IF ADVISED  OF  THE    */
kusano 2b45e8
/*    POSSIBILITY OF SUCH DAMAGE.                                    */
kusano 2b45e8
/*                                                                   */
kusano 2b45e8
/* The views and conclusions contained in the software and           */
kusano 2b45e8
/* documentation are those of the authors and should not be          */
kusano 2b45e8
/* interpreted as representing official policies, either expressed   */
kusano 2b45e8
/* or implied, of The University of Texas at Austin.                 */
kusano 2b45e8
/*********************************************************************/
kusano 2b45e8
kusano 2b45e8
#include <stdio.h></stdio.h>
kusano 2b45e8
#include <ctype.h></ctype.h>
kusano 2b45e8
#include "common.h"
kusano 2b45e8
#ifdef FUNCTION_PROFILE
kusano 2b45e8
#include "functable.h"
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifndef COMPLEX
kusano 2b45e8
#ifdef XDOUBLE
kusano 2b45e8
#define ERROR_NAME "QSYMM "
kusano 2b45e8
#elif defined(DOUBLE)
kusano 2b45e8
#define ERROR_NAME "DSYMM "
kusano 2b45e8
#else
kusano 2b45e8
#define ERROR_NAME "SSYMM "
kusano 2b45e8
#endif
kusano 2b45e8
#else
kusano 2b45e8
#ifndef GEMM3M
kusano 2b45e8
#ifndef HEMM
kusano 2b45e8
#ifdef XDOUBLE
kusano 2b45e8
#define ERROR_NAME "XSYMM "
kusano 2b45e8
#elif defined(DOUBLE)
kusano 2b45e8
#define ERROR_NAME "ZSYMM "
kusano 2b45e8
#else
kusano 2b45e8
#define ERROR_NAME "CSYMM "
kusano 2b45e8
#endif
kusano 2b45e8
#else
kusano 2b45e8
#ifdef XDOUBLE
kusano 2b45e8
#define ERROR_NAME "XHEMM "
kusano 2b45e8
#elif defined(DOUBLE)
kusano 2b45e8
#define ERROR_NAME "ZHEMM "
kusano 2b45e8
#else
kusano 2b45e8
#define ERROR_NAME "CHEMM "
kusano 2b45e8
#endif
kusano 2b45e8
#endif
kusano 2b45e8
#else
kusano 2b45e8
#ifndef HEMM
kusano 2b45e8
#ifdef XDOUBLE
kusano 2b45e8
#define ERROR_NAME "XSYMM3M "
kusano 2b45e8
#elif defined(DOUBLE)
kusano 2b45e8
#define ERROR_NAME "ZSYMM3M "
kusano 2b45e8
#else
kusano 2b45e8
#define ERROR_NAME "CSYMM3M "
kusano 2b45e8
#endif
kusano 2b45e8
#else
kusano 2b45e8
#ifdef XDOUBLE
kusano 2b45e8
#define ERROR_NAME "XHEMM3M "
kusano 2b45e8
#elif defined(DOUBLE)
kusano 2b45e8
#define ERROR_NAME "ZHEMM3M "
kusano 2b45e8
#else
kusano 2b45e8
#define ERROR_NAME "CHEMM3M "
kusano 2b45e8
#endif
kusano 2b45e8
#endif
kusano 2b45e8
#endif
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
static int (*symm[])(blas_arg_t *, BLASLONG *, BLASLONG *, FLOAT *, FLOAT *, BLASLONG) = {
kusano 2b45e8
#ifndef GEMM3M
kusano 2b45e8
#ifndef HEMM
kusano 2b45e8
  SYMM_LU, SYMM_LL, SYMM_RU, SYMM_RL,
kusano 2b45e8
#if defined(SMP) && !defined(USE_SIMPLE_THREADED_LEVEL3)
kusano 2b45e8
  SYMM_THREAD_LU, SYMM_THREAD_LL, SYMM_THREAD_RU, SYMM_THREAD_RL,
kusano 2b45e8
#endif
kusano 2b45e8
#else
kusano 2b45e8
  HEMM_LU, HEMM_LL, HEMM_RU, HEMM_RL,
kusano 2b45e8
#if defined(SMP) && !defined(USE_SIMPLE_THREADED_LEVEL3)
kusano 2b45e8
  HEMM_THREAD_LU, HEMM_THREAD_LL, HEMM_THREAD_RU, HEMM_THREAD_RL,
kusano 2b45e8
#endif
kusano 2b45e8
#endif
kusano 2b45e8
#else
kusano 2b45e8
#ifndef HEMM
kusano 2b45e8
  SYMM3M_LU, SYMM3M_LL, SYMM3M_RU, SYMM3M_RL,
kusano 2b45e8
#if defined(SMP) && !defined(USE_SIMPLE_THREADED_LEVEL3)
kusano 2b45e8
  SYMM3M_THREAD_LU, SYMM3M_THREAD_LL, SYMM3M_THREAD_RU, SYMM3M_THREAD_RL,
kusano 2b45e8
#endif
kusano 2b45e8
#else
kusano 2b45e8
  HEMM3M_LU, HEMM3M_LL, HEMM3M_RU, HEMM3M_RL,
kusano 2b45e8
#if defined(SMP) && !defined(USE_SIMPLE_THREADED_LEVEL3)
kusano 2b45e8
  HEMM3M_THREAD_LU, HEMM3M_THREAD_LL, HEMM3M_THREAD_RU, HEMM3M_THREAD_RL,
kusano 2b45e8
#endif
kusano 2b45e8
#endif
kusano 2b45e8
#endif
kusano 2b45e8
};
kusano 2b45e8
kusano 2b45e8
#ifndef CBLAS
kusano 2b45e8
kusano 2b45e8
void NAME(char *SIDE, char *UPLO, 
kusano 2b45e8
         blasint *M, blasint *N, 
kusano 2b45e8
         FLOAT *alpha, FLOAT *a, blasint *ldA, 
kusano 2b45e8
         FLOAT *b, blasint *ldB, 
kusano 2b45e8
         FLOAT *beta,  FLOAT *c, blasint *ldC){
kusano 2b45e8
  
kusano 2b45e8
  char side_arg  = *SIDE;
kusano 2b45e8
  char uplo_arg  = *UPLO;
kusano 2b45e8
kusano 2b45e8
  blas_arg_t args;
kusano 2b45e8
kusano 2b45e8
  FLOAT *buffer;
kusano 2b45e8
  FLOAT *sa, *sb;
kusano 2b45e8
kusano 2b45e8
#ifdef SMP
kusano 2b45e8
#ifndef COMPLEX
kusano 2b45e8
#ifdef XDOUBLE
kusano 2b45e8
  int mode  =  BLAS_XDOUBLE | BLAS_REAL;
kusano 2b45e8
#elif defined(DOUBLE)
kusano 2b45e8
  int mode  =  BLAS_DOUBLE  | BLAS_REAL;
kusano 2b45e8
#else
kusano 2b45e8
  int mode  =  BLAS_SINGLE  | BLAS_REAL;
kusano 2b45e8
#endif  
kusano 2b45e8
#else
kusano 2b45e8
#ifdef XDOUBLE
kusano 2b45e8
  int mode  =  BLAS_XDOUBLE | BLAS_COMPLEX;
kusano 2b45e8
#elif defined(DOUBLE)
kusano 2b45e8
  int mode  =  BLAS_DOUBLE  | BLAS_COMPLEX;
kusano 2b45e8
#else
kusano 2b45e8
  int mode  =  BLAS_SINGLE  | BLAS_COMPLEX;
kusano 2b45e8
#endif
kusano 2b45e8
#endif
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(SMP) && !defined(NO_AFFINITY)
kusano 2b45e8
  int nodes;
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
  blasint info;
kusano 2b45e8
  int side;
kusano 2b45e8
  int uplo;
kusano 2b45e8
kusano 2b45e8
  PRINT_DEBUG_NAME;
kusano 2b45e8
kusano 2b45e8
  args.alpha = (void *)alpha;
kusano 2b45e8
  args.beta  = (void *)beta;
kusano 2b45e8
kusano 2b45e8
  TOUPPER(side_arg);
kusano 2b45e8
  TOUPPER(uplo_arg);
kusano 2b45e8
kusano 2b45e8
  side  = -1;
kusano 2b45e8
  uplo  = -1;
kusano 2b45e8
kusano 2b45e8
  if (side_arg  == 'L') side  = 0;
kusano 2b45e8
  if (side_arg  == 'R') side  = 1;
kusano 2b45e8
kusano 2b45e8
  if (uplo_arg  == 'U') uplo  = 0;
kusano 2b45e8
  if (uplo_arg  == 'L') uplo  = 1;
kusano 2b45e8
  
kusano 2b45e8
  args.m = *M;
kusano 2b45e8
  args.n = *N;
kusano 2b45e8
kusano 2b45e8
  args.c = (void *)c;
kusano 2b45e8
  args.ldc = *ldC;
kusano 2b45e8
    
kusano 2b45e8
  info = 0;
kusano 2b45e8
kusano 2b45e8
  if (args.ldc < MAX(1, args.m)) info = 12;
kusano 2b45e8
kusano 2b45e8
  if (!side) {
kusano 2b45e8
    args.a = (void *)a;
kusano 2b45e8
    args.b = (void *)b;
kusano 2b45e8
    
kusano 2b45e8
    args.lda = *ldA;
kusano 2b45e8
    args.ldb = *ldB;
kusano 2b45e8
    
kusano 2b45e8
    if (args.ldb < MAX(1, args.m)) info =  9;
kusano 2b45e8
    if (args.lda < MAX(1, args.m)) info =  7;
kusano 2b45e8
kusano 2b45e8
  } else {
kusano 2b45e8
    args.a = (void *)b;
kusano 2b45e8
    args.b = (void *)a;
kusano 2b45e8
    
kusano 2b45e8
    args.lda = *ldB;
kusano 2b45e8
    args.ldb = *ldA;
kusano 2b45e8
kusano 2b45e8
  if (args.lda < MAX(1, args.m)) info =  9;
kusano 2b45e8
  if (args.ldb < MAX(1, args.n)) info =  7;
kusano 2b45e8
  }
kusano 2b45e8
kusano 2b45e8
  if (args.n   < 0)              info =  4;
kusano 2b45e8
  if (args.m   < 0)              info =  3;
kusano 2b45e8
  if (uplo     < 0)              info =  2;
kusano 2b45e8
  if (side     < 0)              info =  1;
kusano 2b45e8
kusano 2b45e8
  if (info != 0) {
kusano 2b45e8
    BLASFUNC(xerbla)(ERROR_NAME, &info, sizeof(ERROR_NAME));
kusano 2b45e8
    return;
kusano 2b45e8
  }
kusano 2b45e8
  
kusano 2b45e8
#else
kusano 2b45e8
kusano 2b45e8
void CNAME(enum CBLAS_ORDER order, enum CBLAS_SIDE Side, enum CBLAS_UPLO Uplo,
kusano 2b45e8
	   blasint m, blasint n,
kusano 2b45e8
#ifndef COMPLEX
kusano 2b45e8
	   FLOAT alpha,
kusano 2b45e8
#else
kusano 2b45e8
	   FLOAT *alpha,
kusano 2b45e8
#endif
kusano 2b45e8
	   FLOAT *a, blasint lda,
kusano 2b45e8
	   FLOAT *b, blasint ldb,
kusano 2b45e8
#ifndef COMPLEX
kusano 2b45e8
	   FLOAT beta,
kusano 2b45e8
#else
kusano 2b45e8
	   FLOAT *beta,
kusano 2b45e8
#endif
kusano 2b45e8
	   FLOAT *c, blasint ldc) {
kusano 2b45e8
kusano 2b45e8
  blas_arg_t args;
kusano 2b45e8
  int side, uplo;
kusano 2b45e8
  blasint info;
kusano 2b45e8
kusano 2b45e8
  FLOAT *buffer;
kusano 2b45e8
  FLOAT *sa, *sb;
kusano 2b45e8
kusano 2b45e8
#ifdef SMP
kusano 2b45e8
#ifndef COMPLEX
kusano 2b45e8
#ifdef XDOUBLE
kusano 2b45e8
  int mode  =  BLAS_XDOUBLE | BLAS_REAL;
kusano 2b45e8
#elif defined(DOUBLE)
kusano 2b45e8
  int mode  =  BLAS_DOUBLE  | BLAS_REAL;
kusano 2b45e8
#else
kusano 2b45e8
  int mode  =  BLAS_SINGLE  | BLAS_REAL;
kusano 2b45e8
#endif  
kusano 2b45e8
#else
kusano 2b45e8
#ifdef XDOUBLE
kusano 2b45e8
  int mode  =  BLAS_XDOUBLE | BLAS_COMPLEX;
kusano 2b45e8
#elif defined(DOUBLE)
kusano 2b45e8
  int mode  =  BLAS_DOUBLE  | BLAS_COMPLEX;
kusano 2b45e8
#else
kusano 2b45e8
  int mode  =  BLAS_SINGLE  | BLAS_COMPLEX;
kusano 2b45e8
#endif  
kusano 2b45e8
#endif
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if defined(SMP) && !defined(NO_AFFINITY)
kusano 2b45e8
  int nodes;
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
  PRINT_DEBUG_CNAME;
kusano 2b45e8
kusano 2b45e8
#ifndef COMPLEX
kusano 2b45e8
  args.alpha = (void *)α
kusano 2b45e8
  args.beta  = (void *)β
kusano 2b45e8
#else
kusano 2b45e8
  args.alpha = (void *)alpha;
kusano 2b45e8
  args.beta  = (void *)beta;
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
  args.c = (void *)c;
kusano 2b45e8
  args.ldc = ldc;
kusano 2b45e8
kusano 2b45e8
  side  = -1;
kusano 2b45e8
  uplo  = -1;
kusano 2b45e8
  info  =  0;
kusano 2b45e8
kusano 2b45e8
  if (order == CblasColMajor) {
kusano 2b45e8
    if (Side == CblasLeft)  side = 0;
kusano 2b45e8
    if (Side == CblasRight) side = 1;
kusano 2b45e8
kusano 2b45e8
    if (Uplo == CblasUpper) uplo  = 0;
kusano 2b45e8
    if (Uplo == CblasLower) uplo  = 1;
kusano 2b45e8
kusano 2b45e8
    info = -1;
kusano 2b45e8
kusano 2b45e8
    args.m = m;
kusano 2b45e8
    args.n = n;
kusano 2b45e8
kusano 2b45e8
    if (args.ldc < MAX(1, args.m)) info = 12;
kusano 2b45e8
kusano 2b45e8
    if (!side) {
kusano 2b45e8
      args.a = (void *)a;
kusano 2b45e8
      args.b = (void *)b;
kusano 2b45e8
      
kusano 2b45e8
      args.lda = lda;
kusano 2b45e8
      args.ldb = ldb;
kusano 2b45e8
      
kusano 2b45e8
      if (args.ldb < MAX(1, args.m)) info =  9;
kusano 2b45e8
      if (args.lda < MAX(1, args.m)) info =  7;
kusano 2b45e8
      
kusano 2b45e8
    } else {
kusano 2b45e8
      args.a = (void *)b;
kusano 2b45e8
      args.b = (void *)a;
kusano 2b45e8
      
kusano 2b45e8
      args.lda = ldb;
kusano 2b45e8
      args.ldb = lda;
kusano 2b45e8
      
kusano 2b45e8
      if (args.lda < MAX(1, args.m)) info =  9;
kusano 2b45e8
      if (args.ldb < MAX(1, args.n)) info =  7;
kusano 2b45e8
    }
kusano 2b45e8
    
kusano 2b45e8
    if (args.n   < 0)              info =  4;
kusano 2b45e8
    if (args.m   < 0)              info =  3;
kusano 2b45e8
    if (uplo     < 0)              info =  2;
kusano 2b45e8
    if (side     < 0)              info =  1;
kusano 2b45e8
  }
kusano 2b45e8
kusano 2b45e8
  if (order == CblasRowMajor) {
kusano 2b45e8
    if (Side == CblasLeft)  side = 1;
kusano 2b45e8
    if (Side == CblasRight) side = 0;
kusano 2b45e8
kusano 2b45e8
    if (Uplo == CblasUpper) uplo  = 1;
kusano 2b45e8
    if (Uplo == CblasLower) uplo  = 0;
kusano 2b45e8
kusano 2b45e8
    info = -1;
kusano 2b45e8
kusano 2b45e8
    args.m = n;
kusano 2b45e8
    args.n = m;
kusano 2b45e8
kusano 2b45e8
    if (args.ldc < MAX(1, args.m)) info = 12;
kusano 2b45e8
kusano 2b45e8
    if (!side) {
kusano 2b45e8
      args.a = (void *)a;
kusano 2b45e8
      args.b = (void *)b;
kusano 2b45e8
      
kusano 2b45e8
      args.lda = lda;
kusano 2b45e8
      args.ldb = ldb;
kusano 2b45e8
      
kusano 2b45e8
      if (args.ldb < MAX(1, args.m)) info =  9;
kusano 2b45e8
      if (args.lda < MAX(1, args.m)) info =  7;
kusano 2b45e8
      
kusano 2b45e8
    } else {
kusano 2b45e8
      args.a = (void *)b;
kusano 2b45e8
      args.b = (void *)a;
kusano 2b45e8
      
kusano 2b45e8
      args.lda = ldb;
kusano 2b45e8
      args.ldb = lda;
kusano 2b45e8
      
kusano 2b45e8
      if (args.lda < MAX(1, args.m)) info =  9;
kusano 2b45e8
      if (args.ldb < MAX(1, args.n)) info =  7;
kusano 2b45e8
    }
kusano 2b45e8
    
kusano 2b45e8
    if (args.n   < 0)              info =  4;
kusano 2b45e8
    if (args.m   < 0)              info =  3;
kusano 2b45e8
    if (uplo     < 0)              info =  2;
kusano 2b45e8
    if (side     < 0)              info =  1;
kusano 2b45e8
  }
kusano 2b45e8
kusano 2b45e8
  if (info >= 0) {
kusano 2b45e8
    BLASFUNC(xerbla)(ERROR_NAME, &info, sizeof(ERROR_NAME));
kusano 2b45e8
    return;
kusano 2b45e8
  }
kusano 2b45e8
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
  if (args.m == 0 || args.n == 0) return;
kusano 2b45e8
kusano 2b45e8
  IDEBUG_START;
kusano 2b45e8
kusano 2b45e8
  FUNCTION_PROFILE_START();
kusano 2b45e8
kusano 2b45e8
  buffer = (FLOAT *)blas_memory_alloc(0);
kusano 2b45e8
    
kusano 2b45e8
  sa = (FLOAT *)((BLASLONG)buffer + GEMM_OFFSET_A);
kusano 2b45e8
  sb = (FLOAT *)(((BLASLONG)sa + ((GEMM_P * GEMM_Q * COMPSIZE * SIZE + GEMM_ALIGN) & ~GEMM_ALIGN)) + GEMM_OFFSET_B);
kusano 2b45e8
  
kusano 2b45e8
#ifdef SMP
kusano 2b45e8
  args.common = NULL;
kusano 2b45e8
  args.nthreads = num_cpu_avail(3);
kusano 2b45e8
kusano 2b45e8
  if (args.nthreads == 1) {
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
    (symm[(side << 1) | uplo ])(&args, NULL, NULL, sa, sb, 0);
kusano 2b45e8
kusano 2b45e8
#ifdef SMP
kusano 2b45e8
kusano 2b45e8
  } else {
kusano 2b45e8
kusano 2b45e8
#ifndef NO_AFFINITY
kusano 2b45e8
    nodes = get_num_nodes();
kusano 2b45e8
    
kusano 2b45e8
    if (nodes > 1) {
kusano 2b45e8
      
kusano 2b45e8
      args.nthreads /= nodes;
kusano 2b45e8
      
kusano 2b45e8
      gemm_thread_mn(mode, &args, NULL, NULL, 
kusano 2b45e8
		     symm[4 | (side << 1) | uplo ], sa, sb, nodes);
kusano 2b45e8
      
kusano 2b45e8
    } else {
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifndef USE_SIMPLE_THREADED_LEVEL3
kusano 2b45e8
      
kusano 2b45e8
      (symm[4 | (side << 1) | uplo ])(&args, NULL, NULL, sa, sb, 0);
kusano 2b45e8
      
kusano 2b45e8
#else
kusano 2b45e8
      
kusano 2b45e8
      GEMM_THREAD(mode, &args, NULL, NULL, symm[(side << 1) | uplo ], sa, sb, args.nthreads);
kusano 2b45e8
      
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifndef NO_AFFINITY
kusano 2b45e8
    }
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
  }
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
 blas_memory_free(buffer);
kusano 2b45e8
kusano 2b45e8
  FUNCTION_PROFILE_END(COMPSIZE * COMPSIZE,
kusano 2b45e8
		       (!side)? args.m * (args.m / 2 + args.n) : args.n * (args.m + args.n / 2),
kusano 2b45e8
		       (!side)? 2 * args.m * args.m * args.n : 2 * args.m * args.n * args.n);
kusano 2b45e8
kusano 2b45e8
  IDEBUG_END;
kusano 2b45e8
kusano 2b45e8
  return;
kusano 2b45e8
}