This commit is contained in:
2020-06-27 02:22:38 -03:00
parent cef26b5e36
commit 2719566afa
27 changed files with 40 additions and 46 deletions

View File

@@ -22,7 +22,7 @@ This python package is made for applied Numeric Calculus of Linear Algebra. It i
The module *scan* has a function for *Numpy* arrays and *Pandas* dataframes, and used the following syntax `Seals.scan.np(path)` for *Numpy* and `Seals.scan.pd(path)` for *Pandas*, where `path` is the path to your directory.
The module *write* has a function for *Numpy* arrays and *Pandas* dataframes, and uses the following syntax `Sealswrite.np(array,path)` for *Numpy*, where `array` is the matrix that you desire to output and `path` is the path to your directory, and `Seals.write.pd(df,path)` for *Pandas*, where `df` is the matrix that you desire to output and `path` is the path to your directory.
The module *write* has a function for *Numpy* arrays and *Pandas* dataframes, and uses the following syntax `Seals.write.np(array,path)` for *Numpy*, where `array` is the matrix that you desire to output and `path` is the path to your directory, and `Seals.write.pd(df,path)` for *Pandas*, where `df` is the matrix that you desire to output and `path` is the path to your directory.
The module *insert* has a function for *matrix* and another for *vector*, and it has the following syntax `Seals.insert.function(array)`, where `insert` is the *Python Module* and `function` is either a `matrix` or a `vector` and `array` is either a *matrix* or a *vector*.

View File

@@ -15,10 +15,4 @@
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from .insert import insert
from .process import process
from .scan import scan
from .write import write
from .eigen import eigen
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

View File

@@ -17,7 +17,5 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
name = 'insert'
from .insert import matrix
from .insert import vector

View File

@@ -19,7 +19,6 @@
def matrix(matrix):
i = 0
while (i < matrix.shape[0]):

View File

@@ -17,8 +17,6 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
name = 'process'
from .process import identity
from .process import gauss
from .process import inverse

View File

@@ -17,7 +17,5 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
name = 'scan'
from .scan import numpy as np
from .scan import pandas as pd

View File

@@ -20,14 +20,26 @@
import numpy as np
import pandas as pd
def numpy(self, path):
def numpy(path, sep=None, decimal=None):
df=pd.read_csv(path, sep=';',decimal=",",header=None)
if sep is None:
sep = ","
if decimal is None:
decimal = "."
df=pd.read_csv(path, sep=sep, decimal=decimal, header=None)
array = df.to_numpy()
return array
def pandas(self, path):
def pandas(path, sep=None, decimal=None):
return pd.read_csv(path, sep=';',decimal=",")
if sep is None:
sep = ","
if decimal is None:
decimal = "."
return pd.read_csv(path, sep=sep, decimal=decimal)

View File

@@ -17,7 +17,5 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
name = 'write'
from .write import numpy
from .write import pandas
from .write import numpy as np
from .write import pandas as pd

View File

@@ -15,10 +15,4 @@
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from .insert import insert
from .process import process
from .scan import scan
from .write import write
from .eigen import eigen
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

View File

@@ -17,7 +17,5 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
name = 'insert'
from .insert import matrix
from .insert import vector

View File

@@ -19,7 +19,6 @@
def matrix(matrix):
i = 0
while (i < matrix.shape[0]):

View File

@@ -17,8 +17,6 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
name = 'process'
from .process import identity
from .process import gauss
from .process import inverse

View File

@@ -17,7 +17,5 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
name = 'scan'
from .scan import numpy as np
from .scan import pandas as pd

View File

@@ -20,14 +20,26 @@
import numpy as np
import pandas as pd
def numpy(self, path):
def numpy(path, sep=None, decimal=None):
df=pd.read_csv(path, sep=';',decimal=",",header=None)
if sep is None:
sep = ","
if decimal is None:
decimal = "."
df=pd.read_csv(path, sep=sep, decimal=decimal, header=None)
array = df.to_numpy()
return array
def pandas(self, path):
def pandas(path, sep=None, decimal=None):
return pd.read_csv(path, sep=';',decimal=",")
if sep is None:
sep = ","
if decimal is None:
decimal = "."
return pd.read_csv(path, sep=sep, decimal=decimal)

View File

@@ -17,7 +17,5 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
name = 'write'
from .write import numpy
from .write import pandas
from .write import numpy as np
from .write import pandas as pd

Binary file not shown.

View File

@@ -30,7 +30,7 @@ Description: # Seals - Numeric Calculus
The module *scan* has a function for *Numpy* arrays and *Pandas* dataframes, and used the following syntax `Seals.scan.np(path)` for *Numpy* and `Seals.scan.pd(path)` for *Pandas*, where `path` is the path to your directory.
The module *write* has a function for *Numpy* arrays and *Pandas* dataframes, and uses the following syntax `Sealswrite.np(array,path)` for *Numpy*, where `array` is the matrix that you desire to output and `path` is the path to your directory, and `Seals.write.pd(df,path)` for *Pandas*, where `df` is the matrix that you desire to output and `path` is the path to your directory.
The module *write* has a function for *Numpy* arrays and *Pandas* dataframes, and uses the following syntax `Seals.write.np(array,path)` for *Numpy*, where `array` is the matrix that you desire to output and `path` is the path to your directory, and `Seals.write.pd(df,path)` for *Pandas*, where `df` is the matrix that you desire to output and `path` is the path to your directory.
The module *insert* has a function for *matrix* and another for *vector*, and it has the following syntax `Seals.insert.function(array)`, where `insert` is the *Python Module* and `function` is either a `matrix` or a `vector` and `array` is either a *matrix* or a *vector*.