public function outer(Vector $b) : Matrix
    {
        $n = $b->n();

        $c = [];

        foreach ($this->a as $i => $value) {
            $temp = [];

            for ($j = 0; $j < $n; $j++) {
                $temp[] = $value * $b[$j];
            }

            $c[] = $temp;
        }

        return Matrix::quick($c);
    }
public function outer(Vector $b) : Matrix
    {
        $n = $b->n();

        $c = [];

        foreach ($this->a as $i => $value) {
            $temp = [];

            for ($j = 0; $j < $n; $j++) {
                $temp[] = $value * $b[$j];
            }

            $c[] = $temp;
        }

        return Matrix::quick($c);
    }
public function outer ( Vector $ b ) : Matrix { $ n = $ b -> n ( ) ; $ c = [ ] ; foreach ( $ this -> a as $ i => $ value ) { $ temp = [ ] ; for ( $ j = 0 ; $ j < $ n ; $ j ++ ) { $ temp [ ] = $ value * $ b [ $ j ] ; } $ c [ ] = $ temp ; } return Matrix :: quick ( $ c ) ; }
Calculate the outer product of this and another vector.

@param \Rubix\Tensor\Vector $b
@return \Rubix\Tensor\Matrix
Calculate the outer product of this and another vector .