1597594440

# Matrix multiplication and inversion

We are going to treat two of the most used calculations for matrices, multiplications, and inversion, let’s start with multiplication and how to do it in distinct ways.

## Matrix Multiplication

To be able to multiplicate matrices, their sizes have to be compatible, the number of rows of the first matrix has to match the number of columns of the second matrix.

We will run all the examples on the same two 2 by 2 matrixes:

Base matrices to run examples, self-generated.

### Dot product

The first way to multiplicate them is by using the dot product, that is, multiplicate every row per every column and the index that matches between the two vectors is the position of the result, let’s calculate C = A B.

Let’s explain how to calculate c11 and c12,

Dot product example, self-generated.

After calculating all the dot products, using the next mathematical expression, we get the C matrix.

#algebra #mathematics #machine-learning #deep-learning #data-science #deep learning

1597559012

## Multiple File Upload in Laravel 7, 6

in this post, i will show you easy steps for multiple file upload in laravel 7, 6.

As well as how to validate file type, size before uploading to database in laravel.

### Laravel 7/6 Multiple File Upload

You can easily upload multiple file with validation in laravel application using the following steps:

2. Setup Database Credentials
3. Generate Migration & Model For File
5. Create File Controller & Methods
6. Create Multiple File Blade View
7. Run Development Server

1597470037

## Laravel 7 Multiple Image Upload with Preview

Here, i will show you how to upload multiple image with preview using ajax in laravel.

## Laravel 7 Ajax Multiple Image Upload with Preview

Just follow the below steps and upload multiple images using ajax with showing preview in laravel applications:

• Install Laravel Fresh Setup
• Setup Database Credentials
• Create Route
• Generate Controller By Command
• Start Development Server

#laravel multiple image upload with preview #laravel multiple image validation #display multiple images in laravel #laravel multiple file upload #multiple image upload in laravel 6 #ajax image upload and preview with laravel

1595201363

## Php how to delete multiple rows through checkbox using ajax in laravel

First thing, we will need a table and i am creating products table for this example. So run the following query to create table.

``````CREATE TABLE `products` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
``````

Next, we will need to insert some dummy records in this table that will be deleted.

``````INSERT INTO `products` (`name`, `description`) VALUES

('Test product 1', 'Product description example1'),

('Test product 2', 'Product description example2'),

('Test product 3', 'Product description example3'),

('Test product 4', 'Product description example4'),

('Test product 5', 'Product description example5');
``````

Now we are redy to create a model corresponding to this products table. Here we will create Product model. So let’s create a model file Product.php file under app directory and put the code below.

``````<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Product extends Model
{
protected \$fillable = [
'name','description'
];
}
``````

## Step 2: Create Route

Now, in this second step we will create some routes to handle the request for this example. So opeen routes/web.php file and copy the routes as given below.

routes/web.php

``````Route::get('product', 'ProductController@index');
Route::delete('product/{id}', ['as'=>'product.destroy','uses'=>'ProductController@destroy']);
Route::delete('delete-multiple-product', ['as'=>'product.multiple-delete','uses'=>'ProductController@deleteMultiple']);
``````

#laravel #delete multiple rows in laravel using ajax #laravel ajax delete #laravel ajax multiple checkbox delete #laravel delete multiple rows #laravel delete records using ajax #laravel multiple checkbox delete rows #laravel multiple delete

1597559901

## Laravel 7.x/6 Multiple Image Upload Ajax

Here, i will share with you how to multiple image upload in laravel 7, 6 using ajax. And display preview of multiple images before upload in laravel.

### Multiple Image Upload With Preview in Laravel 7/6 using Ajax

Upload multiple images using ajax with preview in laravel 7/6 by following the below steps:

1. Install Laravel Fresh Setup
2. Setup Database Credentials
3. Create Multiple Image Upload Route
4. Generate Image Controller By Command
6. Start Development Server

#ajax multiple image upload and preview with laravel #multiple image upload in laravel 6 #laravel multiple image upload with preview #upload multiple images ajax jquery laravel #laravel multiple image validation

1597499549

## Ajax Multiple Image Upload with Progress bar with jQuery in Laravel

In this post, i will show you, how you can upload multiple file with progress bar in laravel using jQuery ajax.

So follow below given steps to create ajax multiple image upload with progress bar with jquery and laravel php.

## Multiple File Upload with Progress bar Using jQuery and Laravel PHP

Now follow the below given simple and easy step to upload multiple file with progress bar in laravel using jQuery ajax: