This commit is contained in:
nik
2025-09-30 14:26:54 +03:00
parent 8bd93df2ae
commit 8164e04835
633 changed files with 8 additions and 8 deletions

View File

@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,60 @@
using System;
public class Program
{
public static void Main(string[] args)
{
int[,] m1 = new int[2, 2];
int[,] m2 = new int[2, 2];
fillQuadraticMatrix(ref m1, 2);
fillQuadraticMatrix(ref m2, 2);
int[,] res = multiplyQuadraticMatrix(m1, m2, 2);
printQuadraticMatrix(res, 2);
}
static void fillQuadraticMatrix(ref int[,] m, int n)
{
for (int i = 0; i < n; i++)
{
for (int j = 0; j < n; j++)
{
Console.Write("m[{0}][{1}] = ", i, j);
m[i, j] = int.Parse(Console.ReadLine());
}
}
}
static void printQuadraticMatrix(int[,] m, int n)
{
for (int i = 0; i < n; i++)
{
for (int j = 0; j < n; j++)
{
Console.Write(m[i, j] + " ");
}
Console.Write("\n");
}
}
static int[,] multiplyQuadraticMatrix(int[,] m1, int[,] m2, int n)
{
int[,] res = new int[n, n];
for (int i = 0; i < n; i++)
{
for (int j = 0; j < n; j++)
{
for (int k = 0; k < n; k++)
{
res[i, j] += m1[i, k] * m2[k, j];
}
}
}
return res;
}
}

View File

@@ -0,0 +1,23 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v9.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v9.0": {
"MatrixMultiply/1.0.0": {
"runtime": {
"MatrixMultiply.dll": {}
}
}
}
},
"libraries": {
"MatrixMultiply/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}

View File

@@ -0,0 +1,12 @@
{
"runtimeOptions": {
"tfm": "net9.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "9.0.0"
},
"configProperties": {
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}

View File

@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")]

View File

@@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("MatrixMultiply")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+1c467e61be36ba28401de8950c829e3f753a634c")]
[assembly: System.Reflection.AssemblyProductAttribute("MatrixMultiply")]
[assembly: System.Reflection.AssemblyTitleAttribute("MatrixMultiply")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.

View File

@@ -0,0 +1 @@
04331c49f921a7429aefb22e34852167176cc0eb6eff54ff74fdc32820c402f8

View File

@@ -0,0 +1,15 @@
is_global = true
build_property.TargetFramework = net9.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = MatrixMultiply
build_property.ProjectDir = /home/nik/oop/labs/lab5/MatrixMultiply/
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
build_property.EffectiveAnalysisLevelStyle = 9.0
build_property.EnableCodeStyleSeverity =

View File

@@ -0,0 +1,8 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;

View File

@@ -0,0 +1 @@
ea88fc3b550f6a964ea47b632e984ea30472c127dca7d28d99c9c330d5105556

View File

@@ -0,0 +1,14 @@
/home/nik/oop/labs/lab5/MatrixMultiply/obj/Debug/net9.0/MatrixMultiply.GeneratedMSBuildEditorConfig.editorconfig
/home/nik/oop/labs/lab5/MatrixMultiply/obj/Debug/net9.0/MatrixMultiply.AssemblyInfoInputs.cache
/home/nik/oop/labs/lab5/MatrixMultiply/obj/Debug/net9.0/MatrixMultiply.AssemblyInfo.cs
/home/nik/oop/labs/lab5/MatrixMultiply/obj/Debug/net9.0/MatrixMultiply.csproj.CoreCompileInputs.cache
/home/nik/oop/labs/lab5/MatrixMultiply/bin/Debug/net9.0/MatrixMultiply
/home/nik/oop/labs/lab5/MatrixMultiply/bin/Debug/net9.0/MatrixMultiply.deps.json
/home/nik/oop/labs/lab5/MatrixMultiply/bin/Debug/net9.0/MatrixMultiply.runtimeconfig.json
/home/nik/oop/labs/lab5/MatrixMultiply/bin/Debug/net9.0/MatrixMultiply.dll
/home/nik/oop/labs/lab5/MatrixMultiply/bin/Debug/net9.0/MatrixMultiply.pdb
/home/nik/oop/labs/lab5/MatrixMultiply/obj/Debug/net9.0/MatrixMultiply.dll
/home/nik/oop/labs/lab5/MatrixMultiply/obj/Debug/net9.0/refint/MatrixMultiply.dll
/home/nik/oop/labs/lab5/MatrixMultiply/obj/Debug/net9.0/MatrixMultiply.pdb
/home/nik/oop/labs/lab5/MatrixMultiply/obj/Debug/net9.0/MatrixMultiply.genruntimeconfig.cache
/home/nik/oop/labs/lab5/MatrixMultiply/obj/Debug/net9.0/ref/MatrixMultiply.dll

View File

@@ -0,0 +1 @@
12158eafecee62b11e7f6cd701788e6b2fc3b191f4f67e264c2c0f0daea4e326

Binary file not shown.

View File

@@ -0,0 +1,73 @@
{
"format": 1,
"restore": {
"/home/nik/oop/labs/lab5/MatrixMultiply/MatrixMultiply.csproj": {}
},
"projects": {
"/home/nik/oop/labs/lab5/MatrixMultiply/MatrixMultiply.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/home/nik/oop/labs/lab5/MatrixMultiply/MatrixMultiply.csproj",
"projectName": "MatrixMultiply",
"projectPath": "/home/nik/oop/labs/lab5/MatrixMultiply/MatrixMultiply.csproj",
"packagesPath": "/home/nik/.nuget/packages/",
"outputPath": "/home/nik/oop/labs/lab5/MatrixMultiply/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/nik/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net9.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net9.0": {
"targetAlias": "net9.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
},
"SdkAnalysisLevel": "9.0.100"
},
"frameworks": {
"net9.0": {
"targetAlias": "net9.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[9.0.9, 9.0.9]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/9.0.110/PortableRuntimeIdentifierGraph.json"
}
}
}
}
}

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/home/nik/.nuget/packages/</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/nik/.nuget/packages/</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.4</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="/home/nik/.nuget/packages/" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />

View File

@@ -0,0 +1,78 @@
{
"version": 3,
"targets": {
"net9.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net9.0": []
},
"packageFolders": {
"/home/nik/.nuget/packages/": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/home/nik/oop/labs/lab5/MatrixMultiply/MatrixMultiply.csproj",
"projectName": "MatrixMultiply",
"projectPath": "/home/nik/oop/labs/lab5/MatrixMultiply/MatrixMultiply.csproj",
"packagesPath": "/home/nik/.nuget/packages/",
"outputPath": "/home/nik/oop/labs/lab5/MatrixMultiply/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/nik/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net9.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net9.0": {
"targetAlias": "net9.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
},
"SdkAnalysisLevel": "9.0.100"
},
"frameworks": {
"net9.0": {
"targetAlias": "net9.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[9.0.9, 9.0.9]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/9.0.110/PortableRuntimeIdentifierGraph.json"
}
}
}
}

View File

@@ -0,0 +1,10 @@
{
"version": 2,
"dgSpecHash": "jGUAOCUgnWY=",
"success": true,
"projectFilePath": "/home/nik/oop/labs/lab5/MatrixMultiply/MatrixMultiply.csproj",
"expectedPackageFiles": [
"/home/nik/.nuget/packages/microsoft.aspnetcore.app.ref/9.0.9/microsoft.aspnetcore.app.ref.9.0.9.nupkg.sha512"
],
"logs": []
}