SPVM::AI::Util - AI Utilities for array operations, matrix operations, activate function, and cost function etc.
Version 0.01
Quick summary of what the module does.
Perhaps a little code snippet.
use SPVM::AI::Util; my $mat1 = SPVM::AI::Util->mat_newf([1.2f, 1.3, 1.4], 3, 2); my $mat2 = SPVM::AI::Util->mat_newf([1.5f, 1.1, 1.2], 3, 2); my $mat_add = SPVM::AI::Util->mat_addf($mat1, $mat2);
SPVM::AI::Util is AI Utilities for array operations, matrix operations, activate function, and cost function etc.
This is SPVM module. You can write programing logic using SPVM Language or binding C/C++/cuda language.
sub mat_newf : SPVM::AI::Util::FloatMatrix ($values : float[], $rows_length: int, $columns_length : int)
Create new SPVM::AI::Util::FloatMatrix object.
Arguments:
1. Values. this value is set to values field. Note that the reference is set to values field not creating new array which elements is copied from argument array. Elements order is assumed as Column-Major order.
values
2. Row. This value is set to rows_length field.
rows_length
3. Column. This value is set to columns_length field.
columns_length
Return Value:
SPVM::AI::Util::FloatMatrix object.
Exception:
1. If Values is not defined, a exception occurs.
2. If Values length is different from Row * Column, a exception occurs.
sub mat_new_zerof : SPVM::AI::Util::FloatMatrix ($rows_length: int, $columns_length : int)
Create new SPVM::AI::Util::FloatMatrix object with zero value.
sub mat_new_identf : SPVM::AI::Util::FloatMatrix ($dim : int)
Create new ident <SPVM::AI::Util::FloatMatrix> by specifing the dimention.
sub mat_transposef : SPVM::AI::Util::FloatMatrix ($mat : SPVM::AI::Util::FloatMatrix)
Transpose float matrix and return new SPVM::AI::Util::FloatMatrix object.
sub mat_addf : SPVM::AI::Util::FloatMatrix ($mat1 : SPVM::AI::Util::FloatMatrix, $mat2 : SPVM::AI::Util::FloatMatrix)
Add two float Matrix and return new SPVM::AI::Util::FloatMatrix object.
sub mat_subf : SPVM::AI::Util::FloatMatrix ($mat1 : SPVM::AI::Util::FloatMatrix, $mat2 : SPVM::AI::Util::FloatMatrix)
Subtract two float Matrix and return new SPVM::AI::Util::FloatMatrix object.
sub mat_scamulf : SPVM::AI::Util::FloatMatrix ($scalar : float, $mat1 : SPVM::AI::Util::FloatMatrix)
Scalar multiply float matrix and return new SPVM::AI::Util::FloatMatrix object.
sub mat_mulf : SPVM::AI::Util::FloatMatrix ($mat1 : SPVM::AI::Util::FloatMatrix, $mat2 : SPVM::AI::Util::FloatMatrix)
Multiply two float Matrix and return new SPVM::AI::Util::FloatMatrix object.
sub mat_strf : string ($mat : SPVM::AI::Util::FloatMatrix)
Convert Matrix Content to String. Each column is joined 1 space and Each row is end with \n
1 3 5 2 4 6
This software is Copyright (c) 2020 by Yuki Kimoto.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
Yuki Kimoto, <kimoto.yuki at gmail.com>
<kimoto.yuki at gmail.com>
Please report any bugs or feature requests to bug-spvm-ai-util at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=SPVM-AI-Util. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-spvm-ai-util at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc SPVM::AI::Util
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
https://rt.cpan.org/NoAuth/Bugs.html?Dist=SPVM-AI-Util
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/SPVM-AI-Util
CPAN Ratings
https://cpanratings.perl.org/d/SPVM-AI-Util
Search CPAN
https://metacpan.org/release/SPVM-AI-Util
To install SPVM::AI::Util, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SPVM::AI::Util
CPAN shell
perl -MCPAN -e shell install SPVM::AI::Util
For more information on module installation, please visit the detailed CPAN module installation guide.