PHP code example of suryapradana / alephp

1. Go to this page and download the library: Download suryapradana/alephp library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

suryapradana / alephp example snippets



use ALE\ALE;

 new ALE('Addition');
$additional->process->setRowColumn(3, 3);

$additional->process->setDataFirst([
                                      [1, 2, 5],
                                      [3, 4, 6],
                                      [8, 9, 2]
                                    ]);

$additional->process->setDataSecond([
                                      [5, 6, 4],
                                      [7, 3, 6],
                                      [4, 6, 2]
                                    ]);

foreach ($additional->process->setALE() as $value) {
    echo implode(' ', $value);
    echo '<br>';
}


use ALE\ALE;

 ALE('Vector');

$vector->process->setVectorType('Projection');

$vector->process->setDataNonMatrixA(1,2,3);

$vector->process->setDataNonMatrixB(4,3,2);

foreach ($vector->process->setALE() as $values) {
    echo $values.' ';
}


use ALE\ALE;

ALE('Eigen');

$eigen->process->setDataFirst([
                                [3, 4],
                                [5, 2]
                              ]);

$eigen->process->setALE();